[DOCS-7817] Comment on: "manual/reference/method/db.createUser.txt" Created: 05/May/16  Updated: 03/Nov/17  Resolved: 18/May/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: Unassigned
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.com/manual/reference/method/db.createUser/#db.createUser
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
Referrer: https://docs.mongodb.com/manual/reference/method/js-user-management/
Screen Resolution: 1920 x 1080


Participants:
Days since reply: 7 years, 39 weeks, 1 day ago

 Description   

This example seems to be wrong:

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

{ employeeId: 12345 }

,
"roles" : [

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

,

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

,
"readWrite"
] },

{ w: "majority" , wtimeout: 5000 }

)

Notice the quotes around user, pwd, customData, and roles.



 Comments   
Comment by Kay Kim (Inactive) [ 18/May/16 ]

Although technically valid, made the quote use in example consistent with other examples.

Comment by Githook User [ 18/May/16 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-7817 make example consistent with use of quotes in db.createUser
Branch: v3.0
https://github.com/mongodb/docs/commit/b5ce0a9cba98e8282ae34551adbaced8be5a9c6d

Comment by Githook User [ 18/May/16 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-7817 make example consistent with use of quotes in db.createUser
Branch: master
https://github.com/mongodb/docs/commit/3ee81d4247a980a907a92f3827cf606851446502

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