Details
-
Improvement
-
Resolution: Cannot Reproduce
-
Minor - P4
-
None
-
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
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
Description
-------------------------------quota start ----------------------------------
The user accountUser01 in the products database now has the following roles:
"roles" : [
,
,
{ "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.