Before you use MNS, you must activate the service on the product page of MNS. If your account is a RAM user, you must grant permissions to the RAM user before you can use the console or API to manage MNS resources, and send or receive messages by using SDKs. This article describes how to activate MNS and authorize RAM users to access MNS.
Prerequisites
An Alibaba Cloud account is created.
Step 1: Activate MNS
Step 2: (Required for RAM users) Authorize RAM users to access MNS
- Log on to the RAM console by using your Alibaba Cloud account.
- In the left-side navigation pane, choose .
- On the Users page, find the RAM user to which you want to grant permissions and click Add Permissions in the Actions column.
- In the Add Permissions panel, grant permissions to the RAM user.
- Click OK.
- Click Complete.
MNS provides the following system policies. You can grant related permissions to the RAM user based on the permission scope.
Policy | Description |
---|---|
AliyunMNSFullAccess | The permissions to manage MNS, which are equivalent to the permissions that the Alibaba Cloud account has. A RAM user to which this policy is attached can send and subscribe to all messages and use all the features of the console. |
AliyunMNSReadOnlyAccess | The read-only permissions on MNS. A RAM user to which this policy is attached can only read resource information in the console or by calling API operations. |
Note System permissions cover a large permission scope. For example, after a RAM user is
granted AliyunMNSFullAccess that represents full permissions, the RAM user can manage all resources of MNS. To grant fine-grained permissions, MNS provides custom policies. For more information, see Custom policies.