mongorestore: restoreDbUsersAndRoles flag error for admin db

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: mongorestore
    • None

      Hi

      Following TOOLS-2570

      I wondered what is the reason behind this limitation in mongorestore

      “if restore.InputOptions.RestoreDBUsersAndRoles && restore.NSOptions.DB == “admin”

      { return fmt.Errorf(“cannot use --restoreDbUsersAndRoles with the admin database”) }

      and if this should also be in docs, as there are several tickets of customers hitting this problem. I linked one of the support tickets.

      https://support.mongodb.com/case/00713063

       

      thanks

              Assignee:
              Unassigned
              Reporter:
              Irena Zaidman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: