Permission initialization

Updated at:

Use the main account to initialize permissions and grant RAM users access to PAI-Rec resources.

Background information

PAI-Rec provides four permission initialization policies. Select the one that fits your business needs.

  • PaiRecDataManagementAccess: Allows a RAM user to use PAI-Rec, FeatureStore, OSS, DataWorks, SLS, DataHub, and ACR.

  • PaiRecEngineAccess: Allows a RAM user to use PAI-Rec, FeatureStore, Hologres, EAS, SLS, DataHub, and ACR.

  • PaiRecMonitorAccess: Allows a RAM user to use PAI-Rec, FeatureStore, SLS, DataHub, and ACR.

  • PaiRecRamAdminAccess: Allows a RAM user to use the PAI-Rec permission management page.

Initialization

When a RAM user accesses a new instance, a message prompts them to contact the main account for permission initialization. When the main account accesses the instance, a notification lists any uninitialized policies, such as PaiRecRamAdminAccess.

  1. For the PaiRecDataManagementAccess, PaiRecEngineAccess, and PaiRecMonitorAccess policies, click Create on the page. For the PaiRecRamAdminAccess policy, click Copy Policy to Create and proceed to the next steps.

  2. After you are redirected to the RAM console, click script editor.

  1. Paste the policy content, and then click OK in the lower-left corner. If the copy action fails, you can copy and paste the following content instead. The policy content for PaiRecRamAdminAccess is as follows:

    {
      "Version": "1",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": [
            "ram:ListUserBasicInfos",
            "ram:ListEntitiesForPolicy",
            "ram:ListPolicies",
            "ram:ListPolicyAttachments"
          ],
          "Resource": "*"
        },
        {
          "Effect": "Allow",
          "Action": [
            "ram:AttachPolicyToUser",
            "ram:DetachPolicyFromUser",
            "ram:CreatePolicy",
            "ram:GetPolicy"
          ],
          "Resource": [
            "acs:ram:*:*:user/*",
            "acs:ram:*:system:policy/AliyunPAIRecFullAccess",
            "acs:ram:*:*:policy/PaiRecDataManagementAccess",
            "acs:ram:*:*:policy/PaiRecEngineAccess",
            "acs:ram:*:*:policy/PaiRecMonitorAccess",
            "acs:ram:*:*:policy/PaiRecRamAdminAccess"
          ]
        }
      ]
    }
  2. For Policy name, enter PaiRecRamAdminAccess, and then click OK. This creates the policy.