You can use the Alibaba Cloud account of Enterprise A to create a Resource Access Management (RAM) role, authorize this role, and assign this role to Enterprise B. In this way, the Alibaba Cloud account of Enterprise B or the corresponding RAM user under the Alibaba Cloud account of Enterprise B can be used to access the Application Configuration Management (ACM) resources of Enterprise A.
Cross-entity authorization
Assume that Enterprise A (account ID: 11223344, account alias: company-a) needs to authorize Employee C of Enterprise B (account ID: 12345678, account alias: company-b) to perform operations on the ACM resources of Enterprise A. The following describes the authorization process:
The new version of the RAM console
- (New version) Step 1: Enterprise A creates a RAM role
- (New version) Step 2: Enterprise A authorizes this RAM role
- (New Version) Step 3: Enterprise B creates a RAM user
- (New version) Step 4: Enterprise B authorizes this RAM user
The old version of the RAM console
(New version) Step 1: Enterprise A creates a RAM role
- Log on to the RAM console through the Alibaba Cloud account of Enterprise A. In the left-side navigation pane, choose RAM Roles.
- On the RAM Roles page, click Create RAM Role.
- In the Create RAM Role dialog box, perform the following operations and then click OK.
- In the Trusted entity type section, select Alibaba Cloud Account.
- In the Select Trusted Alibaba Cloud Account section, select Other Alibaba Cloud Account, and enter the account to be authorized in the Account ID field.
In this example, enter 12345678 as the Alibaba Cloud account ID of Enterprise B.
- In the RAM Role Name field, enter a RAM role name.
In this example, enter acm-admin.
(New version) Step 2: Enterprise A authorizes this RAM role
A newly created RAM role does not have any authorizations. Therefore, Enterprise A must authorize this role. In this example, Enterprise A assigns the AliyunACMFullAccess authorization policy to this RAM role so that it can access the ACM resources of Enterprise A.
- Log on to the RAM console. In the left-side navigation pane, choose RAM Roles.
- On the RAM Roles page, find the RAM role to be authorized, and click Add Permissions in the Actions column.
- In the Add Permissions dialog box, find AliyunACMFullAccess in the left-side System Policy list, and click this policy. Then click OK.Note If you also use the configuration encryption and decryption function of ACM, you need to add the AliyunKMSCryptoAccess authorization policy for this RAM role.
(New Version) Step 3: Enterprise B creates a RAM user
- Log on to the RAM console through the Alibaba Cloud account of Enterprise B. In the left-side navigation pane, choose .
- On the Users page, click Create User. In the User Account Information section, enter a logon name in the Logon Name field and a display name in the Display Name field.Important The logon name must be unique within the corresponding Alibaba Cloud account.
- To create multiple users, click Add User, and enter a logon name in the Logon Name field and a display name in the Display Name field.
- In the Access Mode section, select Console Password Logon, and then set Console Password, Password Reset, and Multi-factor Authentication as needed. Then click OK.
After the preceding steps are completed, a RAM user that can log on to the console is created.
(New version) Step 4: Enterprise B authorizes this RAM user
- Log on to the RAM console through the Alibaba Cloud account of Enterprise B. In the left-side navigation pane, choose .
- On the Users page, find the user to be authorized, and click Add Permissions in the Actions column.
- In the Add Permissions dialog box, find AliyunSTSAssumeRoleAccess in the left-side System Policy list, and click this policy. Then click OK.
(Old version) Step 1: Enterprise A creates a RAM role
- Log on to the RAM console through the Alibaba Cloud account of Enterprise A. In the left-side navigation pane, choose Roles.
- On the Role Management page, click Create Role in the upper-right corner. In the Create Role dialog box, select User Role on the Select Role Type tab.
- On the Enter Type tab, select Other Alibaba Cloud Account in the Select Alibaba Cloud Account section. Then enter the account ID of the Alibaba Cloud account to be authorized in the Trusted Alibaba Cloud Account ID field.
In this example, enter 12345678 as the Alibaba Cloud account ID of Enterprise B.
- On the Configure Basic Information tab, enter a role name in the Role Name field. Then click Create.
In this example, enter acm-admin.
- If the Phone Verification dialog box appears, click Send verification code, and enter the verification code received by your phone.
(Old version) Step 2: Enterprise A authorizes this RAM role
A newly created RAM role does not have any authorizations. Therefore, Enterprise A must authorize this role. In this example, Enterprise A assigns the AliyunACMFullAccess authorization policy to this RAM role so that it can access the ACM resources of Enterprise A.
- In the Create Role dialog box, click Authorize on the Role created tab. If you have closed the Create Role dialog box, on the Role Management page, find the newly created role, and click Authorize in the Actions column.
- On the Role Authorization Policies page, click Edit Authorization Policy in the upper-right corner.
- On the Search and Attach tab in the Edit Role Authorization Policy dialog box, find AliyunACMFullAccess in the left-side Available Authorization Policy Names list, and click this policy. Then click the > icon in the middle to add AliyunACMFullAccess to the right-side Selected Authorization Policy Name list. Then click OK.
- If the Phone Verification dialog box appears, click Send verification code, and enter the verification code received by your phone.
(Old version) Step 3: Enterprise B creates a RAM user
- Log on to the RAM console through the Alibaba Cloud account of Enterprise B. In the left-side navigation pane, choose Users.
- On the User Management page, click Create User in the upper-right corner. In the Create User dialog box, enter a user name, and enter optional information as needed. Then click OK. The newly created user is displayed on the User Management page.Important This user name must be unique within the corresponding Alibaba Cloud account.
- On the User Management page, click the user name/display name of the newly created user.
- On the User Details page, click Enable Console Logon in the Web Console Logon Management section.
- In the dialog box for setting the password, enter a password in the New Password and Confirm Password fields, and select On your next logon you must reset the password. Then click OK.
(Old version) Step 4: Enterprise B authorizes this RAM user
- Log on to the RAM console. In the left-side navigation pane, choose Users.
- On the User Management page, find the user to be authorized, and click Authorize in the Actions column.
- In the Edit User-Level Authorization dialog box, find AliyunSTSAssumeRoleAccess in the left-side Available Authorization Policy Names list, and click this policy. Then click the > icon in the middle to add AliyunSTSAssumeRoleAccess to the right-side Selected Authorization Policy Name list. Then click OK.
Step 5: Use this RAM user of Enterprise B for cross-entity resource access
- Log on to the ACM console through this RAM user of Enterprise B.
- After logging on, move the pointer over the account icon and click Switch Role.
- On the Switch Role page, enter company-a as the account alias of Enterprise A or enter its default domain name, and enter acm-admin as the role name. Then click Switch.
- Perform operations on the ACM resources of Enterprise A.