View IAM groups
You can list all the IAM groups in your account, list the users in a user group, and list the IAM groups a user belongs to. If you use the AWS CLI or AWS API, you can list all the IAM groups with a particular path prefix.
To list all the IAM groups in your account
Do any of the following:
-
AWS Management Console
: In the navigation pane, choose User groups. -
AWS CLI: aws iam list-groups
-
AWS API: ListGroups
To list the users in a specific user group
Do any of the following:
-
AWS Management Console
: In the navigation pane, choose User groups, choose the name of the group, and then choose the Users tab. -
AWS CLI: aws iam get-group
-
AWS API: GetGroup
To list all the IAM groups that a user is in
Do any of the following:
AWS Management Console
: In the navigation pane, choose Users, choose the user name, and then choose the Groups tab. -
AWS CLI: aws iam list-groups-for-user
-
AWS API: ListGroupsForUser