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

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

    XMLWordPrintableJSON

Details

    Description

      the example below is wrong ,there is one extra curly brace :
      Examples

      The following db.createUser() operation creates the accountAdmin01 user on the products database.

      use products
      db.createUser( { user: "accountAdmin01",
      pwd: "changeMe",
      customData:

      { employeeId: 12345 }

      ,
      roles: [

      { role: "clusterAdmin", db: "admin" }

      ,

      { role: "readAnyDatabase", db: "admin" }

      ,
      "readWrite"] }, //there is one extra curly brace at the end of this line

      { w: "majority" , wtimeout: 5000 }

      )

      Attachments

        Activity

          People

            allison.moore@mongodb.com Allison Reinheimer Moore
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 16 weeks, 5 days ago