Updated on 2023-12-13 GMT+08:00

Role Management

This section describes how to create one or more roles and grant different permissions to each role.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner, and under Databases, click Data Admin Service.
  4. In the navigation pane on the left, choose Development Tool.

    You can also click Go to Development Tool on the overview page.

  5. Locate the DB instance that you want to log in to and click Log In in the Operation column.
  6. On the top menu bar, choose Account Management > Role Management.
  7. On the role management page, click Create Role in the upper left corner.
  8. On the Basic Settings tab page, enter a role name (mandatory) and specify other parameters as required.

    Figure 1 Creating a role

  9. (Optional) On the Role Groups tab page, select the check boxes in columns Grant and With Grant Option as needed.
  10. (Optional) On the Permissions tab page, click Add, specify a resource type, database, schema, and other column settings from the drop-down lists.
  11. Click Save. In the displayed SQL Preview dialog box, click OK.
  12. On the role management page, edit, rename, and delete existing roles as required.