[DOCS-1762] Comment on: "manual/reference/method/db.addUser.txt" Created: 30/Jul/13  Updated: 03/Nov/17  Resolved: 31/Jul/13

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

Type: Improvement Priority: Major - P3
Reporter: Mike Lohmeier Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/reference/method/db.addUser/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36
Referrer: https://www.google.com/
Screen Resolution: 1440 x 900
repo: docs
source: reference/method/db.addUser


Participants:
Days since reply: 10 years, 29 weeks, 1 day ago

 Description   

The documentation for addUser 2.2.2 readOnly property is incorrect. It is listed as db.addUser("username","password",

{"readOnly":false}

) but it should be db.addUser("username","password",false);

If you use the format the documentation suggests it creates a user with a readOnly field that is a document not a boolean and you can't write from this user.


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