All Products
Search
Document Center

Content Moderation:Grant a RAM user read-only permissions on Content Moderation

Last Updated:Sep 20, 2023

You can use Content Moderation as a RAM user. By default, the AliyunYundunGreenWebFullAccess system policy is provided for Alibaba Cloud accounts. You can attach this system policy to grant a RAM user full administrative permissions on Content Moderation. If you want to grant a RAM user read-only permissions on Content Moderation, you must create a custom policy to grant permissions. Then, this RAM user cannot perform write operations, such as configuring the scan settings for Object Storage Service (OSS) violation detection and managing the scanning results of OSS violation detection in the Alibaba Cloud Content Moderation console. This topic describes how to grant a RAM user read-only permissions on Content Moderation.

Prerequisites

The AliyunYundunGreenWebFullAccess system policy is revoked from a RAM user if it is attached to the user. For more information, see Revoke permissions from a RAM user.

If the RAM user inherits the AliyunYundunGreenWebFullAccess system policy from a user group, this system policy is revoked from the user group or the RAM user is removed from the user group. For more information, see Revoke permissions from a RAM user group and Remove a RAM user from a RAM user group.

Procedure

  1. Log on to the RAM console with an Alibaba Cloud account.

  2. On the Policies page, click Create Policy.

  3. On the Create Policy page, click the JSON tab.

  4. Enter the following policy content and click Next to edit policy information.

    {
        "Version": "1",
        "Statement": [{
            "Action": [
                "yundun-greenweb:List*",
                "yundun-greenweb:Get*",
                "yundun-greenweb:Describe*",
                "yundun-greenweb:Query*"
                ],
            "Resource": "*",
            "Effect": "Allow"
        }]
    }
  5. Specify the Name and Description fields.

  6. Click OK.

  7. In the left-side navigation pane, choose Identities > Users. On the page that appears, find the RAM user to which you want to grant permissions, and click Add Permissions in the Actions column.

  8. In the Add Permissions panel, select the custom policy that you create, and click OK.