Reference for using custom policies in CDT

更新时间: 2026-04-01 06:24:14

When system policies don't meet your business requirements, create custom policies based on the principle of least privilege. Custom policies give you fine-grained control over which actions are allowed on which CDT resources, and restrict access only to the identities that need it.

System policies vs. custom policies

Resource Access Management (RAM) policies fall into two types:

System policyCustom policy
Managed byAlibaba CloudYou
ModifiableNoYes
Use whenStandard permissions are sufficientYou need fine-grained or use-case-specific access control

Manage custom policies

Attach a custom policy

After creating a custom policy, attach it to a RAM user, RAM user group, or RAM role. The principal inherits all permissions defined in the policy.

Delete a custom policy

A custom policy can only be deleted when it is not attached to any principal. If the policy is currently attached, detach it from all principals first, then delete the policy.

Manage policy versions

Custom policies support version control. You can manage custom policy versions based on the version management mechanism provided by RAM.

References

  1. Create a custom policy

  2. Modify the document and description of a custom policy

  3. Delete a custom policy

  4. Manage policy references

  5. Manage custom policy versions

上一篇: Identity-based policies 下一篇: Support