Use wildcard collections in user role privileges

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Security 2020-06-29
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Spencer Jackson
              Reporter:
              Steven Chin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: