Identity management

Updated at:

To protect your Alibaba Cloud account, use RAM users or RAM roles instead of the root account to access Cloud Architect Design Tool (CADT).

RAM users

Only an Alibaba Cloud account (root account), or a RAM user or RAM role with administrative permissions, can create RAM users. RAM users must be granted permissions before they can log on to the console or call APIs to access resources under the Alibaba Cloud account.

Follow these best practices when you use RAM users:

  • Use your root account to create an initial RAM user, grant this user administrative permissions, and then use this administrative RAM user to create and manage all other RAM users.

  • Separate human users from programmatic users.

    When you create a RAM user, you can configure two access modes: Console access and Programmatic access. Console-access users sign in with a username and password. Programmatic-access users authenticate with an AccessKey pair. Separate the two use cases to prevent operational errors, and enable multi-factor authentication (MFA) for console-access users.

  • Grant least privilege to RAM users.

    Least privilege means granting only the permissions required for a specific task. This improves data security and minimizes the risk of permission abuse.

  • Do not hardcode a RAM user's AccessKey ID and AccessKey Secret in application code. An exposed AccessKey compromises all resources in your account. Use Security Token Service (STS) or environment variables to obtain access credentials instead.

  • When applicable, enable single sign-on (SSO) for RAM users so they can access Alibaba Cloud resources with their existing corporate identities.

RAM user operations

RAM user groups

Group RAM users by job function into RAM user groups to manage permissions in bulk. Best practices:

  • Apply the principle of least privilege when you grant permissions to a RAM user group.

  • When a RAM user's responsibilities change, remove the user from irrelevant groups to prevent permission abuse.

  • If a user group no longer requires certain permissions, revoke those permissions from the group.

RAM user group operations

RAM roles

Follow these security best practices when you use RAM roles:

  • After you create a RAM role, avoid modifying its trusted entity. Changing the trusted entity can cause the original entity to lose permissions, potentially disrupting your services, or grant excessive permissions to a new entity. If a modification is necessary, test it thoroughly in a non-production account before applying the change to production.

  • An authorized RAM user in the trusted entity can call the AssumeRole operation to obtain an STS token for the RAM role. STS tokens expire after a limited period. Set a reasonable expiration time to minimize risks from long-lived credentials.

    Note

    The maximum session duration of a role determines the maximum validity period of its STS tokens. Configure a reasonable maximum session duration for security.

  • When applicable, enable single sign-on (SSO) for RAM roles so users can access Alibaba Cloud resources with their existing corporate identities.

RAM role operations

References