Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
Mongo 3.0.7 Replica Set with PRIMARY-SECONDARY and ARBITER in Debian 8 (64 bits)
*Location*: https://docs.mongodb.org/v3.0/reference/method/db.grantRolesToUser/#db.grantRolesToUser
*User-Agent*: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36
*Referrer*: https://docs.mongodb.org/v3.0/reference/method/db.updateUser/
*Screen Resolution*: 1366 x 768
*repo*: docs
*source*: reference/method/db.grantRolesToUser
Mongo 3.0.7 Replica Set with PRIMARY-SECONDARY and ARBITER in Debian 8 (64 bits) *Location*: https://docs.mongodb.org/v3.0/reference/method/db.grantRolesToUser/#db.grantRolesToUser *User-Agent*: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36 *Referrer*: https://docs.mongodb.org/v3.0/reference/method/db.updateUser/ *Screen Resolution*: 1366 x 768 *repo*: docs *source*: reference/method/db.grantRolesToUser
Description
:PRIMARY> db.grantRolesToUser( "user123", [
{ role: "read", db: "datadb" } ] )
2015-12-17T17:25:46.690+0100 E QUERY Error: Could not find user user123@admin
at Error (<anonymous>)
at DB.grantRolesToUser (src/mongo/shell/db.js:1298:15)
at (shell):1:4 at src/mongo/shell/db.js:1298