MaxCompute provides two built-in administrator roles: Super_Administrator and Admin. Assigning either role to a user grants them all permissions of that role at the project level, which is more efficient than granting individual permissions.
Only the project owner can assign built-in administrator roles.
| Built-in role | Scope | Assigned by | Assignment methods |
|---|---|---|---|
Super_Administrator |
Project-level | Project owner | MaxCompute client, DataWorks |
Admin |
Project-level | Project owner | MaxCompute client, DataWorks |
Prerequisites
Before you begin, ensure that you have:
-
Owner access to the MaxCompute project
-
The RAM user to be assigned the role exists in the Alibaba Cloud account
Assign a role by using the MaxCompute client
The following example assigns the Super_Administrator role to RAM user Allen (RAM$Bob@aliyun.com:Allen), who belongs to the Alibaba Cloud account Bob@aliyun.com. The target project is test_project_a.
-
Enter the project.
USE test_project_a; -
Add the RAM user to the project.
ADD USER RAM$Bob@aliyun.com:Allen; -
Grant the role to the RAM user.
GRANT super_administrator TO RAM$Bob@aliyun.com:Allen;
Assign a role by using DataWorks
The following example assigns the Super_Administrator role to RAM user Allen (RAM$Bob@aliyun.com:Allen), who belongs to the Alibaba Cloud account Bob@aliyun.com. The target project is test_project_a.
-
Go to the Workspace page of DataWorks. In the upper-left corner, select the target workspace from the drop-down list.
-
Add the RAM user as a workspace member.
-
In the left-side navigation pane, click Workspace Members and Roles to open the Workspace Members tab.
-
In the upper-right corner, click Add Members.
-
In the Add Members dialog box, select Allen from the Available Accounts section and click the rightwards arrow to move the user to the Selected Accounts section.
-
Select roles for the member and click Confirm.
-
-
Assign the
Super_AdministratororAdminrole to the RAM user.NoteThe following steps apply to the old-version DataWorks console. If you use the new-version console, see Manage user permissions in the MaxCompute console.
-
In the left-side navigation pane, click MaxCompute Management.
-
In the navigation tree, click Custom User Roles.
-
Find the role to assign and click Manage Members in the Actions column. In the Manage Members dialog box, select Allen from the Available Accounts section and click the rightwards arrow to move the user to the Added Accounts section.
-
Click Confirm.
-