All Products
Search
Document Center

:What do I do if "No Permission" is returned when I grant AliyunMNSLoggingRole to a RAM user?

Last Updated:Jan 14, 2025

Description

An error message "No Permission" is displayed when you grant the AliyunMNSLoggingRole to a RAM user.

Cause

The RAM user must have ram:CreateRole and ram:AttachPolicyToRole permissions before quick authorization.

Solution

Grant ram:CreateRole and ram:AttachPolicyToRole permissions to the RAM user by adding the following policy:

{
    "Effect": "Allow",
    "Action": [
      "ram:CreateRole",
      "ram:AttachPolicyToRole"
    ],
    "Resource": "*"
}