All Products
Search
Document Center

MaxCompute:Prepare a RAM user

Last Updated:Apr 01, 2025

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

  1. Step 1: Create a RAM user

    Create a RAM user by using your Alibaba Cloud account. For more information, see RAM.

  2. 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.

  3. 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.

  4. 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

  1. Log on to the RAM console by using your Alibaba Cloud account.

  2. In the left-side navigation pane, choose Identities > Users.

  3. On the Users page, click Create User. image

  4. 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 edit 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.

    Note

    You can click Add User to create multiple RAM users at a time.

  5. 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.

  6. Click OK.

  7. 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

Note
  • 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.

  1. Log on to the RAM console.

  2. In the left-side navigation pane, choose Identities > Users.

  3. On the Users page, click the username of the RAM user that you want to manage.

  4. In the AccessKey section of the Authentication tab, click Create AccessKey.

    image

  5. 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.

    image

  6. In the Create AccessKey dialog box, save the AccessKey ID and AccessKey secret, and click OK.

    image

Step 3 (Optional): Grant permissions to the RAM user

  1. In the left-side navigation pane, choose Identities > Users.

  2. On the Users page, find the required RAM user, and click Add Permissions in the Actions column.

    image

    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.

  3. In the Grant Permission panel, grant permissions to the RAM user.

    1. Configure the Resource Scope parameter.

    2. Configure the Principal parameter.

      The principal is the RAM user to which you want to grant permissions. The current RAM user is automatically selected.

    3. 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.

        Note

        The 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.

    4. Click Grant permissions.

  4. Click the AliyunDataWorksFullAccess policy in the Authorization Policy Name column to add this permission to the list of selected permissions.

    Note

    If the RAM user needs to activate MaxCompute later, the Alibaba Cloud account must attach the AliyunBSSOrderAccess policy to the RAM user.

  5. Click OK.

  6. 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 account and password of the RAM user, which are the logon username and password of the RAM user saved in Step 1.

    • The AccessKey ID and AccessKey secret of the RAM user, which is the AccessKey pair created in Step 2.

  • 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.