| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Lists one specific policy or all the policies attached to the specified group. If
no policies are attached to the group, the action still succeeds. You can paginate the results using the MaxItems
and Marker options.
iam-grouplistpolicies -g
GROUPNAME [-p
POLICYNAME] [-v]
| Name | Description | Required |
|---|---|---|
|
|
Name of the group the policy is attached to. Type: String Default: None |
Yes |
|
|
Name of the policy document to display. Type: String Default: None |
No |
|
|
Displays the contents of the resulting policies (in addition to the policy names). Type: String |
No |
|
|
Use this only when paginating results to indicate the maximum number of items you want
in the response. If there are additional items beyond the
maximum you specify, the Type: String Default: None |
No |
|
|
Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the Marker element in the response you just received. Type: String Default: None |
No |
The output contains the contents of the specific policy you requested, or it contains the names of the policies attached to the specified group (and optionally the contents of each).
The following example request displays the policy named AdminRoot, which is attached to the group named Admins.
PROMPT> iam-grouplistpolicies -g Admins -p AdminRoot -v
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["*"],"Resource":["*"]}]}The following example request displays the names of all the policies attached to
the group named Managers. You could optionally have the output
display the contents of the policies by including the -v option.
PROMPT> iam-grouplistpolicies -g Managers
KeyPolicy
AnotherManagerGroupPolicy