aws iam get-user
Retrieves information about the specified IAM user, including the user's creation date, path, unique ID, and ARN. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To get information about an IAM user
The following get-user example gets information about the IAM user named Paulo.
aws iam get-user --user-name PauloIdentify--user-nameThe name of the user to get information about.Its output
{
"User": {
"UserName": "Paulo",
"Path": "/",
"CreateDate": "2019-09-21T23:03:13Z",
"UserId": "AIDA123456789EXAMPLE",
"Arn": "arn:aws:iam::123456789012:user/Paulo"
}
}For more information, see Managing IAM users in the AWS IAM User Guide.
Options
--user-nameThe name of the user to get information about.