All Products
Search
Document Center

ApsaraMQ for RabbitMQ:Step 1: (Optional) Grant permissions to RAM users

Last Updated:May 28, 2024

By default, Resource Access Management (RAM) users do not have the permissions to perform operations on ApsaraMQ for RabbitMQ resources. If you access ApsaraMQ for RabbitMQ as a RAM user, you must be granted the required permissions by an Alibaba Cloud account before you can manage resources and send and receive messages in the ApsaraMQ for RabbitMQ console.

Background information

This operation is applicable only for RAM users. If you access ApsaraMQ for RabbitMQ by using an Alibaba Cloud account, you have full permissions on ApsaraMQ for RabbitMQ resources and no authorization is required.

The following section describes how to view account roles:

Log on to the ApsaraMQ for RabbitMQ console. The basic information about the account is displayed in the upper-right corner of the page. If Main Account is displayed under Account ID, the account is an Alibaba Cloud account and no authorization is required. If RAM User is displayed, the account is a RAM user and authorization is required.

Permission policies of ApsaraMQ for RabbitMQ

ApsaraMQ for RabbitMQ provides the following system policies. You can grant the related permissions to a RAM user based on the permission scope.

Policy

Description

AliyunAMQPFullAccess

The management permissions on your ApsaraMQ for RabbitMQ resources. If you use this policy to grant permissions to RAM users, the RAM users are granted the permissions that are equivalent to the permissions of an Alibaba Cloud account. This means that the RAM users are granted the permissions to manage all ApsaraMQ for RabbitMQ resources of the Alibaba Cloud account, and to send and receive messages by using SDKs.

AliyunAMQPReadOnlyAccess

The read-only permissions on your ApsaraMQ for RabbitMQ resources. If you use this policy to grant permissions to RAM users, the RAM users can query the data of all ApsaraMQ for RabbitMQ resources of the Alibaba Cloud account.

In addition to system permission policies, you can also create custom permission policies to grant RAM users permissions on specific resources. For more information, see Custom permission policies.

(Required for RAM users) Grant permissions to a RAM user

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

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

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

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

  5. Click Close.

What to do next

Step 2: Create resources

Step 3: Use SDKs to send and receive messages

References

System permission policies are created and maintained by Alibaba Cloud. You can use system permission policies to perform coarse-grained permission control on RAM users. You cannot modify system permission policies. For more information, see Create custom policies.

For information about custom permission policies supported by ApsaraMQ for RabbitMQ, see RAM policies.