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

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

    XMLWordPrintableJSON

Details

    Description

      there is an error in the example, I think you have a spare right curly brace at the end of the line 12:
      line1Examples
      line2
      line3The following db.createUser() operation creates the accountAdmin01 line4user on the products database.
      line5
      line6use products
      line7db.createUser( { user: "accountAdmin01",
      line8 pwd: "changeMe",
      line9 customData:

      { employeeId: 12345 }

      ,
      line10 roles: [

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

      ,
      line11

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

      ,
      line12 "readWrite"] }, //a spare right curly brace at the end
      line13

      { 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:
            0 Start watching this issue

            Dates

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