Grant a RAM user read-only permissions on AI Guardrails

更新时间:
复制 MD 格式

No official read-only system policy exists for AI Guardrails — only AliyunYundunGreenWebFullAccess, which grants full administrative permissions. To restrict a RAM user to read-only access, create a custom policy and attach it to the user. After the policy is attached, the RAM user can view data and configurations but cannot perform write operations, such as configuring scan settings for Object Storage Service (OSS) violation detection or managing OSS violation detection results in the console.

This topic is for RAM administrators. If you are the RAM user being granted access, contact your administrator.

Prerequisites

Before you begin, ensure that:

Create and attach a read-only 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. Enter the following policy content and click OK. The policy grants all List*, Get*, Describe*, and Query* actions under the yundun-greenweb service, covering all read operations on AI Guardrails.

    {
        "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, configure the Policy Name and Description parameters and click OK.

  6. In the navigation pane, choose Identities > Users. Find the RAM user you want to grant permissions to and click Add Permissions in the Actions column.

  7. In the Add Permissions panel, select the custom policy and click OK.