mongoose - User roles in mongodb -


i trying create user , roles mongodb database following access using below scripts :

user accessing application :

db.createuser( { user: "mongo", pwd: "mongo_12", roles: ["readwrite"] } ) 

super user :

db.createuser( { user: "super", pwd: "mongo_12@", roles: ["root"] } ) 

i want create account devloper access wherein devloper can create collection, indexes, drop collection , indexes, run query respect shards distribution cannot run cluster related operation.

i tried following query didn't work expected :

db.createuser( { user: "mongo_dev", pwd: "mongo_12", roles: ["readwrite","dbadmin"] } ) 

any suggestion appreciated.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -