-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Security 2020-06-29
It would be great to be able to use wildcard collections when creating privileges for user roles, for example:
db.createRole( { role: "manageCustomCollections", privileges: [ { resource: { db: "data", collection: "custom.*" }, actions: [ "find", "update", "insert", "remove" ] } ], ... } )
This would make it easier for administrators to manage permissions for a set of collections by removing the need to explicitly specify each collection.
- is duplicated by
-
SERVER-22951 Using regexp patterns for resource scope in user-defined roles
- Backlog