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

updateRole does not support specifying a role with the database

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • None
    • manual

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 29 weeks ago