[DOCS-3810] Comment on: "manual/reference/method/db.createUser.txt" Created: 24/Jul/14  Updated: 08/Dec/16  Resolved: 31/Jul/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.9

Type: Improvement Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (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.createUser/#db.createUser
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36
Referrer: http://docs.mongodb.org/manual/reference/method/js-user-management/
Screen Resolution: 1024 x 1280
repo: docs
source: reference/method/db.createUser


Participants:
Days since reply: 9 years, 28 weeks, 6 days ago

 Description   

In the roles section of what fields are required. It doesn't mention that the roles are optional. On the db.createRole page it says "You must specify the privileges field. Use an empty array to specify no privileges." in the privileges field, the roles field should say something similar.

I had to create a user with no roles then grant them later on in the script but I had to initially guess that mongodb wouldnt error when I tried to create a user without roles.



 Comments   
Comment by Githook User [ 31/Jul/14 ]

Author:

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

Message: DOCS-3810 createUsers with no roles
Branch: master
https://github.com/mongodb/docs/commit/0e7b3b0e96d8fc0ba3d0d48546f03ec4d11182ca

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