Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-5902

createRole() ambiguity around effect of privileges in role document

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual
    • None

    Description

      In the reference documentation for createRole() http://docs.mongodb.org/manual/reference/method/db.createRole/#db.createRole
      the relationship between the privileges and roles lists in the role document argument is not clear.

      For instance, do the privilieges in the privileges list override or add to the ones inherited from the roles list?

      If I leave the privileges list empty but include roles to inherit from, does the custom role get no privileges because the list is empty or all of the privileges from the inherited roles?

      I was left having to experiment with different the two parameters to understand the behavior.

      Thanks.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            dean.johnson@mongodb.com Dean Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 29 weeks, 4 days ago