Attach a policy to an IAM user group
You can attach an AWS managed policy—that is, a prewritten policy provided by AWS—to a user group, as explained in the following steps. To attach a customer managed policy—that is, a policy with custom permissions that you create—you must first create the policy. For information about creating customer managed policies, see Define custom IAM permissions with customer managed policies.
For more information about permissions and policies, see Access management for AWS resources.
To attach a policy to a user group (console)
Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/
. -
In the navigation pane, choose User groups and then choose the name of the group.
-
Choose the Permissions tab.
-
Choose Add permissions and then choose Attach policies.
-
The current policies attached to the user group are displayed in the Current permissions policies list. In the list of Other permissions policies, select the checkbox next to the names of the policies to attach. You can use the search box to filter the list of policies by type and policy name.
-
Select the policy you want to attach to your IAM user group and choose Attach policies.
To attach a policy to a user group (AWS CLI or AWS API)
Do either of the following:
-
AWS CLI: aws iam attach-group-policy
-
AWS API: AttachGroupPolicy