Enumeration

Users

aws iam list-users

list IAM users :

aws iam list-groups-for-user --user-name user-name

List the IAM groups that the specified IAM user belongs to :

aws iam list-attached-user-policies --user-name user-name

List all manages policies that are attached to the specified IAM user :

aws iam list-user-policies --user-name user-name

Lists the names of the inline policies embedded in the specified IAM user :

Groups

aws iam list-groups

list of IAM groups

aws iam list-attached-group-policies --group-name group-name

Lists all managed policies that are attached to the specified IAM Group :

aws iam list-group-policies --group-name group-name

List the names of the inline policies embedded in the specified IAM Group:

Roles

list of IAM roles

Lists all managed policies that are attached to the specified IAM role :

List the names of the inline policies embedded in the specified IAM role :

Policies

list of IAM policies

Retrieves information about the specified managed policy :

Lists information about the versions of the specified manages policy :

Retrieved information about the specified version of the specified managed policy :

Retrieves the specified inline policy document that is embedded on the specified IAM user / group / role :

Last updated