Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you have collection level permissions in MongoDB?

Can you have collection level permissions in MongoDB? Similar to table level permissions in a SQL database?

This is the only thing I could find on it. Looks like an old ticket.

https://jira.mongodb.org/browse/SERVER-1105

like image 274
Dave Avatar asked Oct 25 '11 01:10

Dave


2 Answers

For anyone coming to this late (like I did), MongoDB now has support for collection-level authorization.

See: http://docs.mongodb.org/manual/core/collection-level-access-control/

like image 168
John Ruiz Avatar answered Nov 20 '22 22:11

John Ruiz


Nope, not yet, MongoDB access control is currently only available at the database level. Depending on your requirements, it might be an option to implement a security model in application code that controls access down to the collection level.

like image 36
Chris Fulstow Avatar answered Nov 20 '22 22:11

Chris Fulstow