Sharing your Alibaba Cloud account credentials with team members exposes all account resources to security risks. Resource Access Management (RAM) lets you create separate user identities with only the Application Real-Time Monitoring Service (ARMS) permissions each person or application needs -- enforcing least-privilege access without sharing your Alibaba Cloud account credentials.
ARMS permission policies
For security purposes, you can create RAM users for your Alibaba Cloud account and grant different permissions to these RAM users as needed. This way, you can enable RAM users to perform their own duties without exposing the key of your Alibaba Cloud account. In this topic, if Enterprise A wants to allow some employees to handle routine O&M tasks, Enterprise A can create RAM users and grant the corresponding permissions to the RAM users. After that, employees can use these RAM users to log on to the console or call API operations.
ARMS provides two system policies. Choose one based on the access level required:
Policy | What it allows | Typical use case |
| View, edit, and delete instances across all ARMS sub-services | Administrators who configure monitoring tasks, manage alerts, and maintain ARMS resources Note This policy includes all read permissions. Do not attach both policies to the same RAM user. |
| View instance information across all ARMS sub-services (no edit or delete operations) | Team members who only need to view dashboards, traces, and monitoring data |
To grant read-only access scoped to a specific resource group, attach both AliyunARMSReadOnlyAccess and the ReadTraceApp permission. Without ReadTraceApp, ARMS cannot display the application list for that resource group.
Prerequisites
Before you begin, make sure that you have:
Step 1: Create a RAM user
Procedure
Console
Sign in to the RAM console using your Alibaba Cloud account or as a RAM user with administrative permissions (a user to which the
AliyunRAMFullAccesspolicy is attached).In the left-side navigation pane, choose .
On the Users page, click Create User.
On the Create User page, in the User Account Information section, configure the user's basic information.
Logon Name (required): Up to 64 characters. Allows letters, digits, periods (.), hyphens (-), and underscores (_).
Display Name (optional): The name can be up to 128 characters long.
Tag (optional): Click
, then enter a tag key and tag value to categorize and manage users.
NoteClick Add User to create multiple RAM users in bulk.
In the Access Mode section, select an access mode based on the user type.
ImportantAs a security best practice, select only one access mode per user to separate human console access from programmatic application access. If a RAM user needs both console sign-in and API call capabilities, you can select both access modes. After you select Permanent AccessKey, you must select the I confirm that I must create an AccessKey checkbox to continue.
A leaked AccessKey pair compromises your account. Use Security Token Service (STS) tokens (temporary credentials) instead to reduce risk. Best practices for using access credentials to call Alibaba Cloud APIs.
Console access
Select Console Access.
Set Logon Password: Auto-generate or set a custom password. Custom passwords must meet the configured complexity requirements. Set a password policy for RAM users.
Password Reset: Specify whether the user must reset the password at next sign-in.
Enable MFA: MFA is required for all users by default. To change this setting, see Manage RAM user security settings. Users must bind an MFA device at first sign-in. Bind an MFA device.
Programmatic access
Select Permanent AccessKey.
The system automatically creates an AccessKey ID and AccessKey secret for the RAM user.
ImportantThe AccessKey secret is displayed only at creation and cannot be retrieved later. You must immediately download or copy and save the AccessKey secret. A leaked AccessKey pair compromises all resources under your account. Create an AccessKey pair.
OpenAPI
Create a RAM user for console access
Call GetDefaultDomain to obtain the default logon suffix of an account. The format is
<AccountAlias>.onaliyun.com.Call the CreateUser operation to create a RAM user. The following parameters are required:
UserPrincipalName: The logon name for a RAM user. The format is<username>@<AccountAlias>.onaliyun.com, where<username>is the RAM username and<AccountAlias>.onaliyun.comis the default logon suffix.DisplayName: The display name for the RAM user. It can be different from the<username>above.
Call the CreateLoginProfile operation to create a login profile and configure access mode and MFA. Recommended settings:
UserPrincipalName: The user created in the previous step.Password: Set per the account's password strength requirements. Call GetPasswordPolicy to query the current password policy.MFABindRequired: Set totrueto require MFA for RAM users.Status: Enables or disables console password logon. Default value:Active.
Create a RAM user for programmatic access
Call GetDefaultDomain to obtain the default logon suffix for an account. The suffix is in the format
<AccountAlias>.onaliyun.com.Call the CreateUser operation to create a RAM user. The following parameters are required:
UserPrincipalName: The logon name of a RAM user in the format<username>@<AccountAlias>.onaliyun.com, where<username>is the RAM username and<AccountAlias>.onaliyun.comis the default logon suffix.DisplayName: The display name for the RAM user, which can be different from the<username>above.
To create an AccessKey pair (AccessKey), call the CreateAccessKey operation and pass only the
UserPrincipalNamefor the user that you created in the previous step.ImportantThe
CreateAccessKeyresponse contains the AccessKeyId and AccessKeySecret. The AccessKeySecret is displayed only once and cannot be retrieved later — save it immediately. A leaked AccessKey compromises all resources in your account. For more information, see Create an AccessKey.
Step 2: Grant ARMS permissions to the RAM user
Console
The RAM console offers two entry points, both supporting single and batch authorization:
-
Users page: The principal is auto-selected based on the users you choose. Best for user-centric workflows.
-
Grants page: You manually select principals and can view all authorization records across your account. Best for permission-centric workflows.
Tip: For large-scale management, add RAM users with identical responsibilities to a user group, then grant permissions to the group. Navigate to Identities > User Groups to manage groups.
From the Users page
-
Log on to the RAM console.
-
In the left-side navigation pane, choose .
-
On the Users page, find the target RAM user and click Actions column > Attach Policy.
You can also select multiple RAM users and click Attach Policy below the user list for batch authorization.
-
In the Grant Permission panel, configure the following settings:
-
Resource scope:
-
Account level: Permissions apply to all resources in your Alibaba Cloud account.
-
Resource group level: Permissions apply only within the specified resource group. After logging on, the RAM user must switch to the authorized resource group in the top navigation bar.
Note-
The system marks high-risk system policies (such as AdministratorAccess and AliyunRAMFullAccess) with a warning indicator. These policies typically grant full control over all cloud resources or full management of RAM. Grant these policies with caution.
-
For resource group authorization examples, see Control RAM user access to specific ECS instances.
-
-
-
Principal:
The principal is the RAM user receiving permissions. From the Users page, the system auto-selects the current user. From the Grants page, you must manually select the user. Batch selection is supported.
-
Permission policy:
-
System policy: Search and select. Filter by product name (e.g.,
ECS,OSS), access level (e.g.,ReadOnly,FullAccess), or full policy name. For example, to grant permissions for financial management (expenses and costs), search forBSSto findAliyunBSSFullAccess(full access to Billing and Cost Management) and other finance-related policies.The following table lists system policy names for commonly requested Alibaba Cloud products to help you quickly find the right policy.
Product
System policy name
Access level
Billing and cost management (finance)
AliyunBSSFullAccessFull access
Cloud Monitor
AliyunCloudMonitorReadOnlyAccessRead-only
China Gateway (Website Builder)
AliyunWebsiteBuildFullAccessFull access
Alibaba Cloud DevOps
AliyunYunxiaoFullAccessFull access
Model Studio (Bailian)
AliyunBailianFullAccessFull access
Alibaba Cloud DNS
AliyunDNSFullAccessFull access
SSL Certificates Service
AliyunYundunCertFullAccessFull access
Cloud Phone
AliyunECDFullAccessFull access
Support Center
AliyunSupportFullAccessFull access
Resource Center
AliyunResourceCenterFullAccessFull access
AgentBay
AliyunAgentBayFullAccessFull access
Security Center
AliyunYundunSASFullAccessFull access
If you cannot find the policy for your target product, see the System policy reference for the complete list, or create a custom policy for fine-grained access control.
-
Custom policy: You must Create a custom policy before you can grant it.
-
Pagination limit for select all: The policy list is paginated. Selecting all applies only to the current page. After you switch pages, previously selected policies remain in the selected list, but policies on the new page are not automatically selected; you must select them page by page.
-
Quickly grant administrator permissions: To grant administrator permissions, search for
AdministratorAccessin the search box and select it directly, instead of selecting policies page by page. Selecting this policy triggers a high-risk authorization warning.
-
-
(Optional) Description: Enter the authorization reason or scenario for audit purposes.
-
Click Confirm.
-
-
Review the authorization result and click Close.
From the Grants page
-
Log on to the RAM console.
-
In the left-side navigation pane, choose .
-
On the Grants page, click Grant Permission.
-
In the Grant Permission panel, select the principal and configure the same settings as described above.
-
Review the authorization result and click Close.
RAM users created through the Quick Start feature on the RAM console Overview page are automatically granted the corresponding system policy based on the selected scenario, with no manual authorization required:
-
Super user: Automatically granted the
PowerUserAccesspolicy. This user can manage cloud services and resources, but cannot manage RAM identities and their permissions, resource directories, or billing accounts. -
Account administrator: Automatically granted the
AdministratorAccesspolicy. This user can manage all Alibaba Cloud resources, including RAM identities and permissions.
Use these options only when super administrator privileges are truly required. For routine operations, follow the principle of least privilege and grant only the permissions required for the specific task.
OpenAPI
Grant a custom policy
-
Call CreatePolicy to create a custom policy. For policy syntax, see Permission policy elements and Overview of sample policies.
-
Call AttachPolicyToUser to grant the policy at the account level (set
PolicyTypetoCustom).Alternatively, call AttachPolicy to grant the policy at the resource group level.
Grant a system policy
-
Call AttachPolicyToUser to attach the system policy to the RAM user (set
PolicyTypetoSystem). For availablePolicyNamevalues, see System policy reference. -
Alternatively, call AttachPolicy to grant the policy at the resource group level.
Next steps
After creating and authorizing a RAM user, share the credentials with the team member.
Log on to the console as a RAM user
Go to the RAM User Logon page.
On the RAM User Logon page, enter your username and click Next. The username is typically in one of the following formats:
<RAM-username>@<default-domain-name>or<RAM-username>@<domain-alias>. For more information about how to view and change your default domain name and domain alias, see Manage the logon settings for a RAM user.Enter your password and click Log On.
NoteIf the system detects that your password is weak when you log on, you are redirected to a password reset page. We recommend that you change it to a stronger password. You can skip this step without affecting the current logon. For more information, see the announcement.
(Optional) If you have enabled multi-factor authentication (MFA), you must also complete MFA verification. For more information, see Multi-factor authentication (MFA) and Enable an MFA device for a RAM user.
Call API operations with the RAM user AccessKey pair
Specify the RAM user's AccessKey ID and AccessKey secret in your API calls.