Listing Inline Policies Embedded in a User or a Group
You can get a list of all the inline policies embedded in a specified user or group.
You can then get information about the permissions contained in each inline policy. For more information, see Getting Information About an Inline Policy.
Listing Inline Policies Embedded in a User or a Group Using OSC CLI
Listing Inline Policies Embedded in a User
See the ListUserPolicies command sample in the documentation of the EIM API. |
Listing Inline Policies Embedded in a Group
See the ListGroupPolicies command sample in the documentation of the EIM API. |
Listing Inline Policies Embedded in a User or a Group Using AWS CLI
Listing Inline Policies Embedded in a User
To list inline policies embedded in a user, use the list-user-policies command following this syntax:
$ aws iam list-user-policies \
--profile YOUR_PROFILE \
--user-name Jane \
--endpoint https://eim.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
user-name
: The name of the user. -
endpoint
: The endpoint corresponding to the Region you want to send the request to.
The list-user-policies command returns the following element:
-
PolicyNames
: The name of one or more inline policies embedded in the specified user.
{
"PolicyNames": [
"AdminAccess",
"DevAccess"
]
}
Listing Inline Policies Embedded in a Group
To list inline policies embedded in a group, use the list-group-policies command following this syntax:
$ aws iam list-group-policies \
--profile YOUR_PROFILE \
--group-name Admin \
--endpoint https://eim.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
group-name
: The name of the group. -
endpoint
: The endpoint corresponding to the Region you want to send the request to.
The list-group-policies command returns the following element:
-
PolicyNames
: The name of one or more inline policies embedded in the specified group.
{
"PolicyNames": [
"AdminAccess"
]
}
Related Pages
Corresponding API Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.