The following code examples show how to use ListGroupPolicies
.
- AWS CLI
-
To list all inline policies that are attached to the specified group
The following
list-group-policies
command lists the names of inline policies that are attached to the IAM group namedAdmins
in the current account.aws iam list-group-policies \ --group-name
Admins
Output:
{ "PolicyNames": [ "AdminRoot", "ExamplePolicy" ] }
For more information, see Managing IAM policies in the AWS IAM User Guide.
-
For API details, see ListGroupPolicies
in AWS CLI Command Reference.
-
For a complete list of AWS SDK developer guides and code examples, see Using this service with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.