[DOCS-14797] [SERVER] Improve createUser documentation Created: 15/Sep/21  Updated: 30/Oct/23  Resolved: 12/Oct/21

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Major - P3
Reporter: Renato Riccio Assignee: Dave Cuthbert (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 2 years, 21 weeks ago
Epic Link: DOCSP-11702
Story Points: 1

 Description   

In createUser doc we are missing an example where we show how to create an user with specific role on only one collection:

db.createUser({user: "foo",pwd:"foo",roles:[{role: "readWrite",db: "test",collection: "coll"}]})

We also should document that the role subdocument can contain the field collection


Generated at Thu Feb 08 08:11:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.