[SERVER-11555] Deprecate addUser shell helper in favor of createUser helper Created: 04/Nov/13  Updated: 19/Jun/14  Resolved: 06/Nov/13

Status: Closed
Project: Core Server
Component/s: Security, Shell
Affects Version/s: None
Fix Version/s: 2.5.4

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to DRIVERS-127 Deprecate "addUser" helpers in favor ... Closed
is related to SERVER-14316 Remove addUser function from the shell Closed
Backwards Compatibility: Minor Change
Operating System: ALL
Participants:

 Description   

Currently the shell helpers are called addUser and addRole, but the commands they use are called createUser and createRole. We should make these names consistent.

While addUser is what we had in the past, I think createUser is the better name as it's more standard in databases, and more consistent with other creation operations in the system, like createCollection and createIndex.

Also, by moving away from addUser we can change the arguments so that write concern is passed to createUser as an object rather than having "numReplicatedTo" and "timeout" fields.



 Comments   
Comment by auto [ 06/Nov/13 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: SERVER-11555 Replace all occurrences of addUser with createUser in jstests
Branch: master
https://github.com/mongodb/mongo/commit/49fd6dbb2b6d9432cb4d94aaf3e06ca6943042d6

Comment by auto [ 06/Nov/13 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: SERVER-11555 SERVER-11365 Deprecate addUser shell helper in favor of new createUser helper
Branch: master
https://github.com/mongodb/mongo/commit/662dcd9962a3665ccafb9c862e025c53054f4235

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