Attaching an Identity Policy to a Principal
You can add or remove identity policies when authorizing IAM identities (including IAM users, user groups, agencies, and trust agencies). Alternatively, you can directly attach identity policies to or detach them from principals (that is, IAM identities in this topic). Attaching a policy applies its permissions to an IAM identity, whereas detaching a policy revokes those permissions.
The attach and detach features also support batch operations, allowing you to attach or detach identity policies for multiple principals at once. To authorize an individual IAM identity instead, see Assigning Permissions to an IAM User.
Attaching an Identity Policy to a Principal
- Log in to the new IAM console.
- In the navigation pane, click Identity Policies.
- Click the name of the target identity policy. On the displayed details page, click the Policy Usage tab. Figure 1 Attaching an identity policy
- Click Attach and select the principal to whom the policy will be attached. The principals can be users, user groups, agencies, and trust agencies. Figure 2 Selecting principals
- Click OK to attach the identity policy to the principals. Figure 3 Identity policy attached to the principals
- Go back to the Policy Usage tab and confirm that the identity policy has been attached to the principals. Figure 4 Identity policy attached to the principals
- The administrator can then view or modify the principals' permissions.
Detaching an Identity Policy from a Principal
- Log in to the new IAM console.
- In the navigation pane, click Identity Policies.
- Click the name of the target identity policy. On the displayed details page, click the Policy Usage tab. Figure 5 Viewing identity policy usage
- Click Detach and select the principals to detach the policy from. Figure 6 Detaching the policy
- Click OK to detach the identity policy from the principals. Return to the Policy Usage tab. Verify that the detached principal is no longer displayed in the principal list of the identity policy.Figure 7 Identity policy detached from the principals
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot