Updated on 2024-08-29 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 DAS 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 check boxes in columns Grant and With Grant Option as needed.
  10. (Optional) On the Permissions tab page, click Add. In the displayed dialog box, specify details such as the resource type, database, and schema.
  11. Confirm the settings, click Save in the lower part of the page. In the displayed SQL Preview dialog box, click OK.
  12. On the role management page, view the created role, or edit and delete the created role.