Skip to content

Manage database users

Database users are used for accessing database instances via clients such as SDKs. Based on the RBAC architecture in NebulaGraph Cloud, database users need to be assigned database roles to perform operations on the database instances. This topic introduces how to manage database users in NebulaGraph Cloud.

Prerequisites

  • A project is created. For more information, see Create a project.
  • A database instance is created in the project. For more information, see Create a database instance.
  • To perform the operations in this topic, you must be granted related roles. For more information, see Project roles.

Create a database user

Required role: Project Admin

  1. In NebulaGraph Cloud, switch to the organization and project to which the target database instance belongs.
  2. On the database page, click the target database instance.
  3. In the left-side navigation pane of the database details page, click Database Users.
  4. On the Database Users page, click + Add in the upper-right corner.
  5. In the dialog, specify the username and password, and select one or more database roles for the user. For more information, see Database roles.
  6. Click Confirm.

Modify database roles

Required role: Project Admin

  1. In NebulaGraph Cloud, switch to the organization and project to which the target database instance belongs.
  2. On the database page, click the target database instance.
  3. In the left-side navigation pane of the database details page, click Database Users.
  4. On the Database Users page, click the more actions icon at the right of the target database user and select Edit Role.
  5. In the dialog, modify the database roles assigned to the user.
  6. Click Confirm.

Reset password

Required role: Project Admin

  1. In NebulaGraph Cloud, switch to the organization and project to which the target database instance belongs.
  2. On the database page, click the target database instance.
  3. In the left-side navigation pane of the database details page, click Database Users.
  4. On the Database Users page, click the more actions icon at the right of the target database user and select Reset Password.
  5. In the dialog, enter and confirm the new password.
  6. Click Confirm.

Delete a database user

Required role: Project Admin

  1. In NebulaGraph Cloud, switch to the organization and project to which the target database instance belongs.
  2. On the database page, click the target database instance.
  3. In the left-side navigation pane of the database details page, click Database Users.
  4. On the Database Users page, click the more actions icon at the right of the target database user and select Remove.
  5. In the dialog, click Confirm.

View database users

Required role: Project Admin or Project Member

  1. In NebulaGraph Cloud, switch to the organization and project to which the target database instance belongs.
  2. On the database page, click the target database instance.
  3. In the left-side navigation pane of the database details page, click Database Users.
  4. On the Database Users page, you can view the list of database users, including their names and database roles.