Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-5040

updateRole does not support specifying a role with the database

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual
    • Environment:

      When I try this command:
      db.runCommand({updateRole:

      {role:"QA", db:"PLSProduction"}

      , ...

      I get this error:

      { "ok" : 0, "errmsg" : "\"updateRole\" had the wrong type. Expected String, found Object", "code" : 14 }

      Reporter: Marcin Chady
      E-mail: marcin@digitalscapes.ca

            Assignee:
            michael.paik Michael Paik
            Reporter:
            marcin@digitalscapes.ca Marcin Chady
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              7 years, 40 weeks, 2 days ago