Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-48632

Use wildcard collections in user role privileges

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 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.

            Assignee:
            spencer.jackson@mongodb.com Spencer Jackson
            Reporter:
            schin Steven Chin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: