This topic describes how to manage Alibaba Cloud CDN (CDN) permissions of Resource Access Management (RAM) users. In the RAM console, you can create custom policies and attach them to the RAM users.

Background information

  • Before you manage the CDN permissions of RAM users, take note of the following system policies:
    • AliyunCDNFullAccess: grants a RAM user the permissions to manage CDN.
    • AliyunCDNReadOnlyAccess: grants a RAM user the read-only permission on CDN.

    If the system policies cannot meet your business requirements, you can create custom policies.

  • Before you manage the CDN permissions of RAM users, take note of the CDN permissions. For more information, see RAM authorization.

Procedure

  1. Create a RAM user.
    For more information, see Create a RAM user.
  2. Create a custom policy.

    For more information, see Create a custom policy.

    The following custom policy indicates that RAM users are authorized to perform CDN read-only, cache refresh, and preload operations. You can modify the policy content to grant different permissions to RAM users. For more information about how to use the Action or Resource elements, see Policy elements.

    {
      "Version": "1",
      "Statement": [
        {
          "Action": [
            "cdn:Describe*",
            "cdn:PushObjectCache",
            "cdn:RefreshObjectCaches"
          ],
          "Resource": "acs:cdn:*:*:*",
          "Effect": "Allow"
        }
      ]
    }
  3. Attach the policy to the RAM user.
    For more information, see Grant permissions to the RAM user.