Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11555

Deprecate addUser shell helper in favor of createUser helper

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.4
    • Affects Version/s: None
    • Component/s: Security, Shell
    • None
    • Minor Change
    • ALL

      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.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: