Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Attach a policy to an IAM user group
You can attach an Amazon managed
policy—that is, a prewritten policy provided by Amazon—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 Amazon resources.
To attach a policy to an IAM group
- classic IAM console
-
Sign in to the Amazon Web Services Management Console and open the IAM console at https://console.amazonaws.cn/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 check box 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 group and choose
Attach policies.
- Amazon CLI
-
Run the following command:
- API
-
Call the following operation: