Database privilege actions

Before creating database roles and assigning users, it's a good idea to become familiar with the various database privilege actions which can be assigned. Privilege actions represent operations that a role can perform on a resource.  A resource can be a collection, database, or cluster. Each privilege allows the role to run the database command(s) associated with that privilege.

The resource anyResource is reserved and gives access to all resources in your system.  Designed mainly for internal use, its use is not recommended as it could potentially introduce a major security vulnerability.
Privilege actions pertain specifically to database commands, and are not to be confused with mongo shell methods. The latter, ...

Get MongoDB 4 Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.