You can create permission templates to centrally manage resources like instances, databases, and tables that share the same business attributes. This simplifies batch authorization for many users and databases and helps prevent redundant permission grants.
Prerequisites
You are a database administrator or an administrator in DMS. To view your user role, see View my permissions.
Procedure
Log in to DMS 5.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.
-
Click Create Permission Template.
-
In the Create Permission Template dialog box, enter a Template Name and Description, and then click Confirm.
-
Add resources.
You can add resources in one of the following two ways:
-
On the permission template list page or the permission template details page, go to the Resource management tab and click Add Resource. In the search box, search for and select the target instances, databases, and tables. You can select multiple items.
NoteAdd the target database before you add target tables.
-
Add instances to the permission template from the Instances page. Follow these steps:
-
In the top navigation bar of the console, choose .
-
Search for and select one or more target instances or databases, then click Add to Permission Template.
-
Select a permission template and click Save.
-
NoteIf you added a resource by mistake, go to the Resource management tab, select the target instance row, and click Remove to remove the resource.
-
-
Authorize users.
You can authorize users in one of the following two ways:
-
On the template details page, click Authorize to add one or more authorized users and set the validity period.
NoteYou can click the Authorization Records tab to view information such as authorized users and permission types.
-
Authorize users from the Users page. Follow these steps:
-
In the top navigation bar of the console, choose .
-
Select one or more users to authorize, and click Authorize User.
-
Select Authorize Permission Template, choose a permission template and a validity period, and then click Confirm.
-
-
Other operations
-
Edit basic information
On the permission template details page, click Edit to modify the template name and description.
NoteUpdating a permission template does not affect currently authorized users.
-
Create a similar template
NoteThe Create As feature creates a new permission template with the same resources as the original.
-
On the Permission template page, find the target template, and in the Actions column, click Create As.
-
Enter a Template Name and Description.
-
Click Confirm.
-
-
Delete a template
On the permission template list page, select the target template row, and in the Actions column, click Delete.