[DOCS-4096] Comment on: "manual/reference/command/grantRolesToUser.txt" Created: 27/Sep/14  Updated: 14/Dec/16  Resolved: 13/Nov/14

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

Type: Improvement Priority: Minor - P4
Reporter: ding zhengkai Assignee: Michael Paik
Resolution: Cannot Reproduce Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

windows server 2008 r2,mongodb 2.6.4

Location: http://docs.mongodb.org/manual/reference/command/grantRolesToUser/#dbcmd.grantRolesToUser
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
Screen Resolution: 1920 x 1080
repo: docs
source: reference/command/grantRolesToUser


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

 Description   

-------------------------------quota start ----------------------------------
The user accountUser01 in the products database now has the following roles:

"roles" : [

{ "role" : "assetsReader", "db" : "assets" }

,

{ "role" : "read", "db" : "stock" }

,

{ "role" : "readWrite", "db" : "products" }

]
-------------------------------quota end ----------------------------------
I did according to the operation in the example , but 'accountUser01' does not have operating permission to other database , only has permission on database 'products'.
In other words , 'grantRolesToUser' can only grant permission to the users in the current database , and users can not get permission to other databases.



 Comments   
Comment by Michael Paik [ 13/Nov/14 ]

Closing; cannot reproduce. So long as the appropriate roles exist in the other databases, this works as written.

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