#StackBounty: #mongodb #mongodb-3.6 Should I put users in admin DB or in the DB that they should have access to

Bounty: 50

What would the pros / cons be of putting users that should have access to one database in the admin database instead of the database that they should have access to?


I’m a C# developer. This is the first live project using mongodb I’m working on.

I would like to know from people used to managing mongodb instances how they go about setting up users.

In this case I want three users, one for administration, one “webuser” that the intranet web application which I develop will use to read and write documents in one database and a reader user used when read access is enough. Both the readwrite and the reader user just need acces to one database. The admin user should be admin of the mongoserver. The database will be hosted on the server that hosts the web

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.