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

db.addUser() docs are unclear about "roles"

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      At http://docs.mongodb.org/manual/reference/method/db.addUser/#db.addUser it says about roles in the table:

      roles array Optional. An array of user roles.

      But there is no statement about what happens if no roles are passed, or this field isn't present. I presume that means that it uses legacy auth?

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            derick Derick Rethans
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 32 weeks, 1 day ago