(Optional) Managing Trust Agency Permissions to an IAM User (by a Delegated Party)
After a trust agency relationship is established between your account and another account, your account becomes the delegated party. By default, only administrators (the root user and members of the admin group) can manage trust agency resources. You can authorize IAM users to manage trust agency resources on your behalf.
If you have created multiple trust agencies, you can grant an IAM user to manage all or specific trust agency resources. This means the IAM user can switch the role to all or specific delegating accounts.
Prerequisites
- A trust agency relationship has been established between another account and your account.
- You have obtained the name of the delegating account and the trust agency URN.
Procedure
- Create a custom identity policy.
This step is used to create a policy containing permissions required to manage resources for a specific trust agency. If you want to grant IAM users the permissions to manage all trust agencies without fine-grained authorization, you do not need to add the Resource element in the custom identity policy.
- On the Identity Policies page, click Create Identity Policy.
- Enter a policy name.
- Select JSON for Policy View.
- In the Policy Content area, enter the content below.
The custom identity policy only allows users to manage resources for trust agencies with the specified URN of a specified account.
{ "Version": "5.0", "Statement": [{ "Effect": "Allow", "Action": [ "sts:agencies:assume" ], "Resource": [ "iam::<account-id>:agency:<agency-name>" ] }] }
- You need to replace "iam::<account-id>:agency:<agency-name>" with the actual URN of the desired trust agency. You need to obtain the URN from the delegating party.
- For more information, see Identity Policy–based Authorization.
- Click OK.
- Create a user or user group, and authorize the user or user group.
- On the User Groups page, click Create User Group, or on the Users page, click Create User.
- Configure parameters for the user group or user.
- In the row containing the user group or user, click Authorize in the Operation column.
- Select the custom identity policy created in the previous step and click Next.
- Click OK. If the identity policy is attached to a user group instead of a user, you need to add the user to the user group. For details about all operations, see Creating an IAM User, Assigning Permissions to an IAM User, Creating a User Group and Assigning Permissions, and Adding Users to or Removing Users from a User Group.
- Switch the role to the delegating account as the IAM user and manage trust agency resources under that account.
Follow-Up Operations
The delegated account or the authorized IAM users can switch their roles to the delegating account to view and use its resources.
Feedback
Was this page helpful?
Provide feedbackThank 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