[DOCS-5040] updateRole does not support specifying a role with the database Created: 17/Mar/15 Updated: 30/Oct/23 Resolved: 17/Mar/15 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Marcin Chady | Assignee: | Michael Paik |
| Resolution: | Done | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
mongod 2.6.6 Location: http://docs.mongodb.org/manual/reference/command/updateRole/#dbcmd.updateRole |
||
| Participants: | |
| Days since reply: | 7 years, 29 weeks ago |
| Description |
|
When I try this command: , ... I get this error: { "ok" : 0, "errmsg" : "\"updateRole\" had the wrong type. Expected String, found Object", "code" : 14 }Reporter: Marcin Chady |
| Comments |
| Comment by Emily Hall [ 27/Jul/16 ] | ||||
|
Closed for housekeeping on 7/27/2016 by Emily Hall. | ||||
| Comment by Michael Paik [ 17/Mar/15 ] | ||||
|
This syntax is incorrect. The argument to "updateRole" must be a string naming a role currently in the database you are currently using (e.g. "use admin"). The {role:"string", db:"string"}format is only valid for the "roles" parameter, as in the example on the page:
Please refer to the support page for community support options. |