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

Comment on: "manual/reference/method/db.createUser.txt"

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • v1.3.9
    • manual
    • 4
    • true

    Description

      In the roles section of what fields are required. It doesn't mention that the roles are optional. On the db.createRole page it says "You must specify the privileges field. Use an empty array to specify no privileges." in the privileges field, the roles field should say something similar.

      I had to create a user with no roles then grant them later on in the script but I had to initially guess that mongodb wouldnt error when I tried to create a user without roles.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            xgen-internal-docs Docs Collector User
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 3 weeks, 5 days ago