All Products
Search
Document Center

E-MapReduce:Grant permissions to a RAM user

Last Updated:Sep 21, 2026

To allow a RAM user to use features in the EMR Serverless StarRocks console, log on to the Resource Access Management (RAM) console with your Alibaba Cloud account and grant the necessary permissions to the user.

Background information

Resource Access Management (RAM) is an Alibaba Cloud service that controls access to your resources. For more information, see What is Resource Access Management?. Common use cases for RAM in EMR Serverless StarRocks include:

  • User: If you purchase EMR Serverless StarRocks instances and have multiple users in your organization, such as operations engineers, developers, or data analysts, who need to use these instances, you can create a policy to grant them specific permissions. This practice avoids sharing a single AccessKey among multiple people.

  • User group: You can create multiple user groups and attach different permission policies to them to manage user permissions in batches. The procedure for granting permissions to a user group is the same as for a user.

Policies and roles

  • System policies and roles

    • EMR Serverless StarRocks uses the following policies.

      Policy name

      Description

      AliyunEMRStarRocksFullAccess

      Grants administrator permissions on EMR Serverless StarRocks, including access to all its operations and features.

      AliyunEMRStarRocksReadOnlyAccess

      This policy allows users to view the instance list and query instance details but prevents them from creating, updating, or modifying instances.

      AliyunBSSOrderAccess

      Grants permissions to view, pay for, and cancel orders in the Billing Center (BSS). This policy is required to upgrade or downgrade instance configurations and renew instances in the console.

      AliyunSLBFullAccess

      Grants permissions to manage Server Load Balancer (SLB), which allows you to configure public or private network whitelists for an EMR Serverless StarRocks instance.

    • EMR Serverless StarRocks uses the following role.

      Role name

      Description

      AliyunEMRStarRocksAccessingOSSRole

      EMR Serverless StarRocks uses this role to access your data in Object Storage Service (OSS).

  • Custom policy

    If you are familiar with Alibaba Cloud service APIs and require fine-grained permission control, you can create a custom policy. For more information, see Policy structure and syntax. When creating the policy, you must carefully design its script.

Procedure

  1. Log on to the RAM console as a RAM administrator.

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

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

  4. In the Add Authorization panel, select a scope, principal, and policy.

    Parameter

    Description

    Resource scope

    • Account: The permissions apply to the current Alibaba Cloud account.

    • ResourceGroup: The permissions apply only to the specified resource group.

    Principal

    The RAM user to authorize.

    Policy

    Under System Policy, enter StarRocks to search for policies related to EMR Serverless StarRocks. Click the policy you want to attach. For details about each policy, see Policies and roles.

  5. Click Confirm.

    The permissions take effect immediately. You can then use the authorized RAM user to log on to the EMR Serverless console and perform the related operations.

FAQ

Why is a RAM user suddenly unable to view the instance list and prompted for authorization?

  • Problem description: After a RAM user logs on, they cannot view the instance list and the system prompts for authorization. This issue occurs even though the RAM user is attached to the AliyunServiceRoleForEMRStarRocks role and the permission policy has not been changed.

  • Cause:

    • Resource group-level restriction.

      The AliyunEMRStarRocksReadOnlyAccess policy attached to the RAM user is granted at the resource group-level, but the new authentication logic requires the policy to be granted at the account-level.

    • Insufficient Service-Linked Role permissions.

      Although the RAM user is attached to the AliyunServiceRoleForEMRStarRocks role, this Service-Linked Role does not have the required account-level permissions for the ram:GetRole API operation.

  • Solution:

    • Change the scope of the existing policy to account-level.

    • Add an account-level custom policy.

      If you cannot change the scope of the existing policy, you can attach an additional account-level custom policy for AliyunServiceRoleForEMRStarRocks to the RAM user. The policy is as follows:

      {
        "Action": ["ram:GetRole"],
        "Resource": "acs:ram:*:*:role/AliyunServiceRoleForEMRStarRocks",
        "Effect": "Allow"
      }