Add User to MongoDB
Assign MongoDB database user to a database
From this pagepage, you can assign privileges for a MongoDB database user to a particular databasedatabase.
Location :
MongoDB -> Add User to MongoDB
You may select the following to assign the useruser.
Select Database , a database to addwhich user is to be added.
Select Database User, a PgsQL user to assign to the databasedatabase.
Both Database and User need to be in same PgSQL server to assignassign.
Assign Database User Roles, chosechoose the privilege. This will restrict the database permission. Eenos provideprovides the following privelegeprivilege options on mongodb database rols.roles.
- dbOwner : This role combines the privileges granted by the readWrite, dbAdmin and userAdmin roles.
- read : Provides the ability to read data on all non-system collections and the system.js collection.
- readWrite: Provides all the privileges of the read role plus ability to modify data on all non-system collections and the system.js collection.
- dbAdmin : Provides the ability to perform administrative tasks such as schema-related tasks, indexing, and gathering statistics. This role does not grant privileges for user and role management.