Skip to content

Instantly share code, notes, and snippets.

@shahabedinh
Last active May 28, 2020 18:45
Show Gist options
  • Save shahabedinh/012a6a8c3487f831c746f9013b5de78d to your computer and use it in GitHub Desktop.
Save shahabedinh/012a6a8c3487f831c746f9013b5de78d to your computer and use it in GitHub Desktop.
Query all Ops Managers users in MongoDB

To query all users in the Ops Manager

  • Connect the Mongo Ops Manager AppDB using Mongo Shell
  • Run
    • use mmsdbconfig
    • db.config.users.find() or db.config.users.find().pretty()

To query specific user in the Ops Manager

  • Connect the Mongo Ops Manager AppDB using Mongo Shell
  • Run
    • use mmsdbconfig
    • db.config.users.findOne({un : "shahab****"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment