aws iam list-attached-group-policies
Lists all managed policies that are attached to the specified IAM group. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To list all managed policies that are attached to the specified group
The following list-attached-group-policies example returns the names and ARNs of the managed policies that are attached to the IAM group named Admins in the AWS account.
aws iam list-attached-group-policies --group-name AdminsIdentify--group-nameThe name (friendly name, not ARN) of the group to list attached policies for.Its output
{
"AttachedPolicies": [
{
"PolicyName": "AdministratorAccess",
"PolicyArn": "arn:aws:iam::aws:policy/AdministratorAccess"
},
{
"PolicyName": "SecurityAudit",
"PolicyArn": "arn:aws:iam::aws:policy/SecurityAudit"
}
],
"IsTruncated": false
}For more information, see Policies and permissions in IAM in the AWS IAM User Guide.
Options
--group-nameThe name (friendly name, not ARN) of the group to list attached policies for.--markerUse this parameter only when paginating results and only after you receive a response indicating that the results are truncated.--max-itemsUse this only when paginating results to indicate the maximum number of items you want in the response.--path-prefixThe path prefix for filtering the results.