Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
OSX El Captain 10.11.4, MongoDB shell version: 3.2.5, Robomongo 0.9.0-RC7
*Location*: https://docs.mongodb.org/manual/core/collection-level-access-control/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36
*Referrer*: https://www.google.com/
*Screen Resolution*: 1440 x 900
OSX El Captain 10.11.4, MongoDB shell version: 3.2.5, Robomongo 0.9.0-RC7 *Location*: https://docs.mongodb.org/manual/core/collection-level-access-control/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36 *Referrer*: https://www.google.com/ *Screen Resolution*: 1440 x 900
Description
I am not able to implement collection level access control. Here are the steps and commands I have used:
1. created db authdb
2. Created collections in db - collection1, collection2, collection3, collection4, collection5.
3. db.createRole( {role:"collection1Read", privileges: [ { resource:
, actions: ["find"]}],roles:["read"]});
4. db.createUser({user: "user1Read", pwd: "user", roles: [
]});
5. Now if I login as user1Read, I can all collections both by command line or through RoboMongo.
It doesn't work with the steps provided.