Data Management (DMS) provides fine-grained permission control over database instances, databases, tables, rows, and sensitive columns. Permissions are role-based: your role in DMS determines which methods you can use to manage access.
How security hosting affects permissions
Security hosting controls the scope of permissions that can be managed on a database instance:
Disabled: only logon permissions to the instance can be applied for or granted.
Enabled: full permission management is available, covering the instance, databases, tables, rows, and sensitive columns.
For instructions on enabling security hosting, see Security hosting.
Permission management by role
| Role | Available methods | Scope |
|---|---|---|
| Regular user | Submit a ticket to apply for permissions | Instance, database, table, row, sensitive column |
| Database administrator (DBA) | Instance management feature, enable access control for database instances and databases | Instance and database permissions only |
| DMS administrator | Instance management, user management, access control for instances and users | Instance, database, table, row, sensitive column |
| Schema read-only | No action required | Can query metadata of all instances, databases, and tables without applying for query, change, or export permissions |
Click theicon in the upper-right corner of the DMS console to view your roles. DMS records all permission changes — including apply, grant, release, and revoke operations — in operation logs, except metadata access control changes. To view operation logs, choose Security and Specifications > Operation Audit in the top navigation bar, then click the Operation Logs tab.
Apply for permissions (regular users)
Regular users can submit a ticket to apply for permissions on a resource. Users for whom access control is enabled cannot use this method.
Log on to the DMS console V5.0.
-
Move the pointer over the
icon in the upper-left corner and choose . NoteIf you use the DMS console in normal mode, choose in the top navigation bar.
-
Move the pointer over the
icon in the upper-left corner and choose . NoteIf you use the DMS console in normal mode, choose in the top navigation bar.
-
Move the pointer over the
icon in the upper-left corner and choose . NoteIf you use the DMS console in normal mode, choose in the top navigation bar.
Move the pointer over the
icon in the upper-left corner and choose All Features > Security and Specifications (DBS) > Permission Center > Permission Tickets.In normal mode, choose Security and Specifications (DBS) > Permission Center > Permission Tickets in the top navigation bar.
On the Access apply Tickets page, click Access apply and select a permission type from the drop-down list.
Select the resources you want to apply for permissions on.
Security hosting status Permission types available How to select Disabled Instances-Login Search by endpoint or instance name, then click
to add the instance to the Confirm selected instance section.Enabled Instances-OWNER, Database-OWNER, Table-OWNER, Instances-Permission, Instances-Performance, Database-Permission, Table-Permission, Programmable Object, Row-Permission, Sensitive Column-Permission Search for the resource (use %as a wildcard, for example,dms%test), select it in the results, then click
to add it to the Selected Databases/Tables/Columns section.Select permissions (logon, query, export, or change), set a validity period, and enter the reason for your request.
Tip: Set a validity period to limit access to the time you need it. This is useful when you need temporary access for a specific task.
Click Submit. The ticket enters the approval step. After the ticket is approved, DMS automatically grants the permissions.
How approval works:
Security Collaboration mode: the approval process can be customized.
Non-Security Collaboration mode, security hosting disabled: the default approver is the DBA of the instance.
Non-Security Collaboration mode, security hosting enabled: the approver is the resource owner. If no owner is specified, the DBA is the approver.
View your permissions
Log on to the DMS console V5.0.
Move the pointer over the
icon in the upper-left corner and choose All Features > Security and Specifications (DBS) > Permission Center > Permissions.In normal mode, choose Security and Specifications (DBS) > Permission Center > Permissions in the top navigation bar.
View regular permissions on the Ordinary Permissions tab: select a permission type from the drop-down list to filter the list.
View resource owner permissions on the My Resources tab: select Owner's instance, My Databases, or My Tables from the drop-down list.
Permissions on a database instance include logon, view performance, query, export, and change. Permissions on programmable objects cannot be queried or released.
Release your permissions
After releasing permissions on a resource, you can no longer query, export, or change its data.
Log on to the DMS console V5.0.
Move the pointer over the
icon in the upper-left corner and choose All Features > Security and Specifications (DBS) > Permission Center > Permissions.In normal mode, choose Security and Specifications (DBS) > Permission Center > Permissions in the top navigation bar.
To release regular permissions: on the Ordinary Permissions tab, select the permissions to release and click Release Permission.
To release resource owner permissions: on the My Resources tab, select the owner permissions to release and click Release Owner.
Manage permissions as a DMS administrator or DBA
Manage permissions using the instance management feature
DMS administrators and DBAs can manage permissions directly from the instance or database list.
Log on to the DMS console V5.0.
Move the pointer over the
icon in the upper-left corner and choose All Features > Data Assets > Instances.In normal mode, choose Data Assets > Instances in the top navigation bar.
Manage instance-level permissions:
On the Instance List tab, find the instance and choose More > Manage Permissions in the Actions column.
In the dialog box, find the user and click an action button to view permissions, revoke permissions, or grant logon or performance-view permissions.
Security hosting disabled: only logon permissions can be granted.
Security hosting enabled: view performance, query, export, and change permissions can be granted.
Manage database- and table-level permissions (requires security hosting enabled):
On the Database List tab, find the database and choose More > Permission Management in the Actions column.
In the dialog box, select a permission type, then find the user. Click an action button to view or revoke permissions, or click Grant Permissions on Database or Grant Permissions on Table to grant permissions.
Manage permissions using permission templates
For batch or reusable permission configurations, see Create a permission template.
Manage permissions as a DMS administrator
DMS administrators can use the user management feature to grant or revoke permissions on instances, databases, tables, rows, and sensitive columns for any user.
Log on to the DMS console V5.0.
Move the pointer over the
icon in the upper-left corner and choose All Features > O &M > Users.In normal mode, choose O &M > Users in the top navigation bar.
Grant permissions to a user:
Find the user, move the pointer over Authorize in the Actions column, and select a permission type.
In the dialog box, configure the parameters and click OK.
Revoke permissions from a user:
Find the user, move the pointer over More in the Actions column, and select Permission Details.
In the User Permissions dialog box, click the Ordinary Permissions tab and select a permission type.
Select the resources to manage and click Release Permission.
In the Permission Operation dialog box, select the permissions to revoke and click OK.
FAQ
A RAM user has logon permissions to an ApsaraDB RDS instance in DMS, but gets a "no permissions" error when trying to log on. What's wrong?
The ApsaraDB RDS instance must be added to DMS using the Alibaba Cloud account (not the RAM user account). Once the instance is registered under the Alibaba Cloud account, the RAM user can log on to it through DMS. For details, see Register an Alibaba Cloud database instance.