Data Management (DMS) is an integrated database solution that offers data management, structure management, user authorization, security auditing, data trend analysis, data tracking, BI charts, performance optimization, and server management. After you connect to an ApsaraDB for MongoDB instance through DMS, you can easily create, modify, and delete MongoDB users.

Create a user

  1. Log on to the DMS console.
  2. In the top navigation bar, choose Create > User.
  3. On the Create User page, configure user-related parameters.
    Parameter Description
    Destination Database Select the database that you want to save from the drop-down list.
    Note
    • If you select a destination database other than the admin database, you will create a common user.
    • If you select the admin database, you will create a privilege user.
    Username The name of the user.
    • The name cannot contain Chinese characters.
    • It can contains letters, digits, and special characters.
    • Special characters include ! # $ % ^ & * ( ) _ + - =
    Password The password of the user.

    To ensure data security, the password must contain characters from at least three of the following categories: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! # $ % ^ & * ( ) _ + - =

    Confirm Password Enter the password again.
  4. On the Create User page, configure permission-related parameters.
    Note
    • If you select a destination database other than the admin database,

      On the Current Library Permissions tab, you can only set permissions for Current Library ordinary operation role and Current Library administrator operation role.

      No permissions can be set on the Other library Permissions tab.

    • If you select the admin database,

      On the Current Library Permissions tab, you can set permissions for more roles.

      You can set permissions on the Other library Permissions tab. You can add a database name and set a role for the database on this tab.

  5. Click Confirm.

Edit a user

  1. Log on to the DMS console.
  2. On the Object List item in the left-side navigation pane, expand the database for which you want to edit a user.
  3. Expand the user. Right-click it and select Edit user.
  4. In the Edit user dialog box that appears, set the password or permission information for the user.
  5. Click Confirm.

Delete a user

Note To guarantee instance stability, you cannot delete the root user which is reserved by the system.
  1. Log on to the DMS console.
  2. On the Object List item in the left-side navigation pane, expand the database for which you want to delete a user.
  3. Expand the user and right-click it.
  4. Select Delete user.
  5. In the message that appear, click OK. The user is deleted.