By default, Resource Access Management (RAM) users do not have permissions to operate on ApsaraMQ for RabbitMQ resources. If you use a RAM user, you must grant permissions to the user. After the permissions are granted, the RAM user can operate on ApsaraMQ for RabbitMQ resources and send and receive messages.
Background information
This operation is required only for RAM users. If you use an Alibaba Cloud account, you have all permissions for the ApsaraMQ for RabbitMQ service by default and do not need to grant permissions.
To check your account role:
Log on to the ApsaraMQ for RabbitMQ console. Your basic account information appears in the upper-right corner of the page. If Alibaba Cloud Account is displayed below your Account ID, you use an Alibaba Cloud account and do not need to grant permissions. If RAM User is displayed, you must grant permissions to the RAM user.
Access policies for ApsaraMQ for RabbitMQ
ApsaraMQ for RabbitMQ provides the following system policies. You can grant permissions to RAM users based on the required scope of permissions.
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 policies, you can create custom policies to grant a RAM user permissions on specific resources. For more information, see Custom access policies for ApsaraMQ for RabbitMQ.
Grant permissions to a RAM user (required for RAM users)
Log on to the RAM console as a RAM administrator.
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.
Resource Group: 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 restrict a RAM user to managing only specific ECS instances.
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 OK.
Click Close.
What to do next
References
System policies are created by Alibaba Cloud. You can use these policies, but you cannot modify them. You must create and maintain custom policies. Custom policies provide more fine-grained permission control. For more information, see Create a custom policy.
For more information about the custom policies that ApsaraMQ for RabbitMQ supports, see Custom access policies for ApsaraMQ for RabbitMQ.