Manage who can access Data Management (DMS) and what they can do. As an administrator, you can add users manually or sync RAM users, assign system roles, grant database permissions, and control the user lifecycle — including disabling, deleting, and re-enabling accounts.
Prerequisites
Before you begin, ensure that you have:
The Administrator system role in DMS
Usage notes
DMS ensures each tenant always has at least one Administrator account.
Any DMS-managed user can hold the Administrator role, regardless of whether they log in with an Alibaba Cloud account or as a RAM user.
When you activate DMS, your Alibaba Cloud account is automatically granted the Administrator role.
RAM users with the
AdministratorAccesspermission are automatically assigned the DMS Administrator role on first login. For details, see Manage RAM user configurations.Multiple Alibaba Cloud accounts can be added to a single tenant. Users who have joined the tenant can view tenant information.
When an Alibaba Cloud account logs in to DMS for the first time, the system automatically creates a tenant for that account.
Log in to the DMS console
Log in to the DMS console using one of the following methods:
Configure user-based or role-based single sign-on (SSO) to log in using your enterprise identity system
Add a user
DMS provides two methods for adding users: manually entering an account UID, or syncing RAM users from the current Alibaba Cloud account.
Method 1: Add a user manually
Log in to the DMS console V5.0.
In the top navigation bar, choose O&M > Users.
In simple mode, hover over the
icon in the upper-left corner and choose All Features > O&M > Users.On the User Management page, choose Add > Add Account.
In the Add User dialog box, configure the following:
Field Description Alibaba Cloud account Enter the user's Alibaba Cloud account UID. To find a UID, hover over the
icon in the upper-right corner of any Alibaba Cloud console page.Role Select one or more system roles: Regular User, DBA, Administrator, Security Administrator, or Structure Read-only. Click Confirm.
Method 2: Sync RAM users
Only the current Alibaba Cloud account and RAM users with the ListUser permission can perform this operation.Users added with this method are assigned the Regular User role by default. To change the role, see Edit user information.
Log in to the DMS console V5.0.
In the top navigation bar, choose O&M > Users.
In simple mode, hover over the
icon in the upper-left corner and choose All Features > O&M > Users.On the User Management page, choose Add > Sync RAM User.
In the Sync RAM User dialog box, search by display name or UID.
Select the target RAM user and click Add Selected Users.
If a RAM user appears grayed out and cannot be selected, they lack the AliyunDMSLoginConsoleAccess permission. Grant this permission in RAM before syncing.Edit a user
Edit user information
Log in to the DMS console V5.0.
In the top navigation bar, choose O&M > Users.
In simple mode, hover over the
icon in the upper-left corner and choose All Features > O&M > Users.On the User Management page, select the target user.
Click Edit User at the top of the page, or click Edit in the Actions column.
In the Modify User dialog box, update the fields as needed:
To update your mobile phone number or email address, click your profile picture instead. For details, see Configure personal information and notification methods.
Category Field Description Basic information Display name The name shown on the User Management page. Role Assign one or more system roles: Regular User, DBA, Administrator, Security Administrator, or Structure Read-only. Query count limit Maximum result sets the user can query per day. When reached, further queries are blocked. Enter an integer and select a predefined or custom validity period. Maximum query row count Maximum rows the user can query per day. When reached, further queries are blocked. Enter an integer and select a predefined or custom validity period. Notifications DingTalk robot Enter the webhook URL of the DingTalk robot. Webhook Enter a custom webhook URL to integrate with your O&M or message notification system. Signature method Select NONE (default, no signature) or HMAC_SHA1 (Hashed Message Authentication Code using Secure Hash Algorithm). Signature key Enter the signature key. Displayed only when Signature method is set to HMAC_SHA1. Notification method Select one or more: text message, DingTalk, mailbox, DingTalk robot, or webhook. Click Confirm Changes.
Grant permissions to a user
Grant a user access to specific instances, databases, tables, rows, sensitive columns, or permission templates.
The steps below use Grant Instance as an example. Other supported grant types include Grant Permission Template, Grant Database, Grant Table, Grant Row, and Grant Sensitive Column. For the full permissions model, see Permission management.
Log in to the DMS console V5.0.
In the top navigation bar, choose O&M > Users.
In simple mode, hover over the
icon in the upper-left corner and choose All Features > O&M > Users.Select the target user, then choose Grant User > Grant Instance at the top of the page. Alternatively, in the Actions column for the target user, choose Authorize > Authorize Instance.
In the Authorize Instance dialog box, configure the following:
Field Required Description Authorized instances Yes Select one or more database instances to grant access to. Permission type Yes Instances in non-Security Collaboration mode support Instance Logon. Instances in Security Collaboration mode support View Performance. Expiration time Yes Select when the permission expires. Click Confirm.
Manage user status
Disable vs. delete: choose the right action
Before disabling or deleting a user, review the following differences:
| Disable | Delete | |
|---|---|---|
| Can log in to DMS | No | No |
| Permissions retained | Yes — restored when re-enabled | No — all permissions are purged |
| Data retained | Yes — configurations preserved | No — data owner configurations are cleared |
| Operation logs | Retained | Retained (account shows Deleted tag) |
| Occupies user quota | Yes | No |
| Re-enable behavior | Restores original permissions and data | Treated as a new user; must request permissions again |
Tip: If you suspect a user's activity but want to preserve their permission data for review, disable the user instead of deleting them. Use ActionTrail to audit their database operations, then re-enable the user if no issues are found.
Disable a user
Disabling a user blocks their DMS access without removing their permissions or data. Their original configuration is fully restored when you re-enable them.
A disabled user still occupies a user quota.
You cannot disable a user who is the DBA of a database instance. First change the instance's DBA to another user. For details, see Edit an instance.
Log in to the DMS console V5.0.
In the top navigation bar, choose O&M > Users.
In simple mode, hover over the
icon in the upper-left corner and choose All Features > O&M > Users.Select the target user, then choose Operate User > Disable User at the top of the page.
In the Confirm dialog box, click Confirm.
Delete a user
Deleting a user permanently purges all their permission data and data owner configurations from DMS. Their operation logs are retained, and a Deleted tag appears on their account.
The user must not be bound to any resources, such as serving as the DBA of an instance or an approver in security rules.
Deleted users do not occupy a user quota.
Deleted users remain visible in the user list with a Deleted tag and cannot be fully purged from DMS.
Log in to the DMS console V5.0.
In the top navigation bar, choose O&M > Users.
In simple mode, hover over the
icon in the upper-left corner and choose All Features > O&M > Users.Select the target user, then choose Operate User > Delete User at the top of the page.
In the Confirm dialog box, click Confirm.
Enable a user
Re-enabling a disabled user fully restores their original permissions and data configurations.
Re-enabling a deleted user also allows them to log in again, but they are treated as a new user — their previous permissions and configurations are cleared, and they must request permissions again.
Log in to the DMS console V5.0.
In the top navigation bar, choose O&M > Users.
In simple mode, hover over the
icon in the upper-left corner and choose All Features > O&M > Users.Select the target user, then choose Operate User > Enable User at the top of the page.
In the Confirm dialog box, click Confirm.
Enable metadata access control
By default, users can see all database instances in the DMS console navigation pane, even if they only have permissions on a subset. Enabling metadata access control restricts a user's visibility to only the instances and databases they are authorized to access.
When metadata access control is enabled for a user:
The user can query and access only authorized databases. To view their current permissions, go to Security and Specifications > Permission Center > My Permissions.
The user cannot view other databases or instances, and cannot request permissions for resources outside their authorized scope.
To enable metadata access control:
Log in to the DMS console V5.0.
In the top navigation bar, choose O&M > Users.
In simple mode, hover over the
icon in the upper-left corner and choose All Features > O&M > Users.In the Actions column for the target user, choose More > Access Control. To enable for multiple users at once, select them and click Resource Access Management at the top of the page.
In the User Access Control dialog box, enable Metadata Access Control and click Confirm.
FAQ
Can a RAM user be assigned the Administrator or DBA role?
Yes. Role assignment in DMS is independent of account type — any user, whether an Alibaba Cloud account or a RAM user, can hold any system role.
What should I do if I suspect a user's database activity?
Disable the user to block their access immediately while preserving their permissions and data. Then use ActionTrail to review their operations. If no issues are found, re-enable the user to restore their access and configuration.
If you no longer need to retain the user's permissions, delete the user instead. Deletion removes all their permissions, data owner configurations, and settings.
How do I find a specific user account?
In the top navigation bar, choose O&M > User Management. On the User Management page, search by keyword across account name, email address, display name, or Alibaba Cloud UID. You can also filter by account status.
Why do deleted users still appear in the user list?
DMS marks deleted users with a Deleted tag rather than removing them from the list. This is by design — deleted users cannot be fully purged from the system, but they do not occupy a user quota.
When I try to disable a user, the system says they are the DBA of an instance. What should I do?
Edit the database instance to reassign its DBA to another user first. Note that only users with the DBA system role in DMS can be set as a database instance's DBA. If the replacement user doesn't have the DBA role, go to User Management and edit their role before making the change. For details, see Edit an instance.
How do I revoke a user's resource permissions?
Go to O&M > User Management and find the target user. In the Actions column, choose More > Permission Details. Select the permissions to revoke, then click Revoke Permissions.
A RAM user's display name in DMS was not updated after their name changed in RAM. How do I fix this?
DMS syncs the display name from RAM only during the initial sync. Subsequent name changes in RAM are not automatically reflected in DMS. To update the display name, go to O&M > User Management, click Edit for the user, update the Display name in Basic information, and save.
A regular user can see all databases even though they only have permissions on some. Why?
The navigation pane in DMS displays databases at the instance level, showing all databases under each instance regardless of individual permissions. The user can only read from and write to the databases they are authorized to access. To restrict what the user can see to only their authorized resources, enable metadata access control for that user.
What's next
After managing users, you may also need to:
Add users to approval flows for specific ticket types
Grant or revoke database instance permissions
API reference
Manage DMS users programmatically using the following API operations: