Create an IAM user with programmatic access, build a group with a managed policy, add the user to the group, verify permissions with policy simulation, and clean up ā all from the CLI.
Before creating anything, inspect what IAM users already exist in your account.
aws iam list-usersaws iam list-users returns a JSON object with a UserList array.
Each element describes one IAM user: UserName, UserId (starts with AIDA), Arn, Path, and CreateDate.
For a brand-new account the array will be empty ā that is expected.
JSON output like:
{
"Users": []
}
If the account already has users, each entry shows a UserName and Arn. An empty array is normal for a new account.