[DOCS-9182] Comment on: "manual/reference/method/db.createUser.txt" Created: 21/Oct/16  Updated: 03/Nov/17  Resolved: 21/Oct/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Allison Reinheimer Moore
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

windows10

Location: https://docs.mongodb.com/manual/reference/method/db.createUser/#db.createUser
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Referrer: https://docs.mongodb.com/manual/reference/method/
Screen Resolution: 1920 x 1080


Participants:
Days since reply: 7 years, 16 weeks, 6 days ago

 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 }

)


Generated at Thu Feb 08 07:57:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.