[CSHARP-853] Please add ability to manage User Roles via C Sharp Created: 28/Oct/13 Updated: 11/Mar/19 Resolved: 20/Mar/14 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Feature Request |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Critical - P2 |
| Reporter: | John Monroe | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I am using Server 2012 with Visual 2012/13 and writing a mongo c# application to be able to create DB's on the fly via a web application. It would be good to be able to create the DB and the User and assign the role at the same time. You can do this via the mongo.exe command line tool so I assume that the functionality should be in the driver also. YOu can see this in the db.adduser function on this page. http://docs.mongodb.org/manual/reference/method/db.addUser/ |
| Comments |
| Comment by Craig Wilson [ 20/Mar/14 ] |
|
Thanks for the report. We have decided not to do this. It is already possible via RunCommand to add users with roles, so we don't feel the need to add strongly typed helpers for a couple of reasons. First, the server has changed the user representation already since this ticket was filed which would have caused some breaking changes. Second, the need for this by users is relatively low. Thanks, |
| Comment by Domantas Jovaisas [X] [ 05/Dec/13 ] |
|
This is very important for me as well. |