To ensure the security of project data, we recommend that you create Resource Access Management (RAM) users and assign the credentials of the RAM users to other members who participate in MaxCompute projects. This helps strictly control the permissions of personnel who participate in MaxCompute projects. This topic describes how to create a RAM user.
Prerequisites
An Alibaba Cloud account is created.
For more information about how to create an Alibaba Cloud account, see Prepare an Alibaba Cloud account.
Precautions
RAM users belong to your Alibaba Cloud account. They do not own resources and are not separately charged.
All the fees incurred by the RAM users must be paid by your Alibaba Cloud account.
Procedure
Create a RAM user by using your Alibaba Cloud account. For more information, see RAM.
Step 2: Create an AccessKey pair
Create an AccessKey pair for the RAM user by using your Alibaba Cloud account. This ensures that the jobs submitted by the RAM user can run normally.
Step 3 (Optional): Grant permissions to the RAM user
To allow the RAM user to create projects in DataWorks, you must attach the AliyunDataWorksFullAccess policy to the RAM user by using your Alibaba Cloud account.
To allow the RAM user to manage projects and quotas in the MaxCompute V2.0 console, you must attach the AliyunMaxComputeFullAccess policy or custom RAM policies to the RAM user by using your Alibaba Cloud account. For more information, see RAM permissions.
Step 4: Assign the credentials of the RAM user to another user
Assign the credentials of the created RAM user to other users.
Step 1: Create a RAM user
Log on to the RAM console by using your Alibaba Cloud account.
In the left-side navigation pane, choose .
On the Users page, click Create User.
In the User Account Information section of the Create User page, configure the following parameters:
Logon Name: The logon name can be up to 64 characters in length, and can contain letters, digits, periods (.), hyphens (-), and underscores (_).
Display Name: The display name can be up to 128 characters in length.
Tag: Click the
icon and enter a tag key and a tag value. You can add one or more tags to the RAM user. This way, you can manage the RAM user based on the tags.
NoteYou can click Add User to create multiple RAM users at a time.
In the Access Mode section, select Console Access.
Console Access: If you select this option, you must complete the logon security settings. These settings specify whether to use a system-generated or custom logon password, whether the password must be reset upon the next logon, and whether to enable multi-factor authentication (MFA).
Using permanent AccessKey to access: If you select this option, the system automatically generates an AccessKey pair for the RAM user. The RAM user can then call API operations or use other development tools to access Alibaba Cloud resources.
Click OK.
On the Create User page, click Download CSV File or find an existing RAM user and click Copy in the Actions column to save the logon username and password of the RAM user.
Step 2: Create an AccessKey pair
If you grant the RAM user the permission to manage AccessKey pairs, the RAM user can create AccessKey pairs in the RAM console. For more information about how to create an AccessKey pair, see Manage security settings for RAM users.
You can create a maximum of two AccessKey pairs for a RAM user.
Log on to the RAM console.
In the left-side navigation pane, choose .
On the Users page, click the username of the RAM user that you want to manage.
In the AccessKey section of the Authentication tab, click Create AccessKey.
Read the suggestion for each scenario and select a credential solution based on your business requirements. If you must create an AccessKey pair, select a scenario, select I confirm that it is necessary to create an AccessKey, and then click Continue. The created AccessKey pair can be used in all scenarios.
In the Create AccessKey dialog box, save the AccessKey ID and AccessKey secret, and click OK.
Step 3 (Optional): Grant permissions to the RAM user
In the left-side navigation pane, choose .
On the Users page, find the required RAM user, and click Add Permissions in the Actions column.
You can also select multiple RAM users and click Add Permissions in the lower part of the page to grant permissions to the RAM users at a time.
In the Grant Permission panel, grant permissions to the RAM user.
Configure the Resource Scope parameter.
Account: The authorization takes effect on the current Alibaba Cloud account.
ResourceGroup: The authorization takes effect on a specific resource group.
ImportantIf you select Resource Group for the Resource Scope parameter, make sure that the required cloud service supports resource groups. For more information, see Services that work with Resource Group. For more information about how to grant permissions on a resource group, see Use a resource group to grant a RAM user the permissions to manage a specific ECS instance.
Configure the Principal parameter.
The principal is the RAM user to which you want to grant permissions. The current RAM user is automatically selected.
Configure the Policy parameter.
A policy contains a set of permissions. Policies can be classified into system policies and custom policies. You can select multiple policies at a time.
System policies: policies that are created by Alibaba Cloud. You can use but cannot modify these policies. Version updates of the policies are maintained by Alibaba Cloud. For more information, see Services that work with RAM.
NoteThe system automatically identifies high-risk system policies, such as AdministratorAccess and AliyunRAMFullAccess. We recommend that you do not grant unnecessary permissions by attaching high-risk policies.
Custom policies: You can manage and update custom policies based on your business requirements. You can create, update, and delete custom policies. For more information, see Create a custom policy.
Click Grant permissions.
Click the AliyunDataWorksFullAccess policy in the Authorization Policy Name column to add this permission to the list of selected permissions.
NoteIf the RAM user needs to activate MaxCompute later, the Alibaba Cloud account must attach the AliyunBSSOrderAccess policy to the RAM user.
Click OK.
Click Close.
Step 4: Assign the credentials of the RAM user to another user
To assign the credentials of the RAM user to another user, you must provide the following information of the RAM user to the user:
The account information of the RAM user.
The logon method and logon URL of the RAM user.
A RAM user can log on to the Alibaba Cloud Management Console by entering the account information in the common logon URL or logon portal for a RAM user. You can provide the logon URL to other RAM users based on your business requirements. For more information, see Log on to the Alibaba Cloud Management Console as a RAM user.
Domain name of the Alibaba Cloud account to which the RAM user belongs
Log on to the RAM console. In the left-side navigation pane, choose Settings. On the Settings page, you can view default domain name on Domain section.
What to do next
After you prepare the RAM user, you can activate MaxCompute. For more information, see Activate MaxCompute and DataWorks.