Grant a RAM user read-only permissions on AI Guardrails

更新时间:
复制 MD 格式

The built-in AliyunYundunGreenWebFullAccess policy grants full administrative access to AI Guardrails. To grant a RAM user read-only access instead, create a custom policy that permits only List, Get, Describe, and Query operations, and then attach it to the user.

A RAM user with read-only permissions cannot perform write operations such as configuring OSS violation detection scan settings or managing detection results in the console.

Prerequisites

Make sure the following conditions are met:

Grant read-only permissions

Complete the following two stages: create a custom read-only policy, and then attach it to the RAM user.

Step 1: Create the custom policy

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

  2. On the Policies page, click Create Policy.

    image

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

    image

  4. Replace the default content with the following policy, then click OK.

    {
        "Version": "1",
        "Statement": [{
            "Action": [
                "yundun-greenweb:List*",
                "yundun-greenweb:Get*",
                "yundun-greenweb:Describe*",
                "yundun-greenweb:Query*"
                ],
            "Resource": "*",
            "Effect": "Allow"
        }]
    }
  5. In the Create Policy dialog box, enter a Policy Name and a Description, then click OK.

Step 2: Attach the policy to the RAM user

  1. In the left navigation pane, choose Identities > Users. Find the RAM user, then click Add Permissions in the Actions column.

  2. In the Add Permissions panel, select the custom policy you created, then click OK.

The RAM user now has read-only access to AI Guardrails.