[DOCS-5902] createRole() ambiguity around effect of privileges in role document Created: 24/Jul/15  Updated: 30/Oct/23  Resolved: 25/Jul/15

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

Type: Task Priority: Major - P3
Reporter: Dean Johnson Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 8 years, 29 weeks, 4 days ago

 Description   

In the reference documentation for createRole() http://docs.mongodb.org/manual/reference/method/db.createRole/#db.createRole
the relationship between the privileges and roles lists in the role document argument is not clear.

For instance, do the privilieges in the privileges list override or add to the ones inherited from the roles list?

If I leave the privileges list empty but include roles to inherit from, does the custom role get no privileges because the list is empty or all of the privileges from the inherited roles?

I was left having to experiment with different the two parameters to understand the behavior.

Thanks.



 Comments   
Comment by Githook User [ 25/Jul/15 ]

Author:

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

Message: DOCS-5902 DOCS-5903 createRole clarifications and fix parameter ordering for user/role methods
Branch: master
https://github.com/mongodb/docs/commit/7acade61f4795c7ed20dbd416eb597d43804d06f

Comment by Githook User [ 25/Jul/15 ]

Author:

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

Message: DOCS-5902 DOCS-5903 createRole clarifications and fix parameter ordering for user/role methods
Branch: v2.6
https://github.com/mongodb/docs/commit/15335ec7c918e800752af8a06426431d0eb1acdc

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