DBaasNow V3

MongoDB users and roles

Use Create user to create database access and specify the database associated with the new user. MongoDB database creation is part of this operation.

Create a user and database access

  1. Open the MongoDB project and select Create user.
  2. Enter User Name.
  3. Enter DB Name for the intended application database.
  4. Select the required Roles using the role selector. The available choices include the role's database association, such as readWrite@sales or an administrative role associated with admin.
  5. Enter Password securely and add Remarks.
  6. Review the username, database and privileges, then choose Confirm & Submit.
  7. Follow Activity until the operation has a final result.
  8. Refresh Users & Roles, check the account and assigned roles, and test the application's database access.

Select roles through the UI. Use the minimum privileges needed by the application.

For the database portion of this operation, see MongoDB database management.

Update a user

  1. Open Users & Roles and choose Edit for the intended account.
  2. Review User Name, DB Name and the selected Roles.
  3. Update the permitted fields and enter a new password when changing it.
  4. Add remarks and choose Confirm & Submit.
  5. Follow Activity, refresh the account and verify the intended access.

Protect dnadmin and dncollector; the product uses these accounts for management and collection.

Delete a user

Identify dependent applications first. Open the intended account's edit dialog, review its identity and choose Delete User. Follow Activity and verify that new authentication with that account is rejected.

Removing an account does not remove the application's database contents.

Get a connection template

In Users & Roles, choose Get DB Connection String for the intended account. Check the database, hosts, port and authentication settings before using the template in an application. Keep passwords and completed connection strings private.


Guide overview ยท Documentation home