Sunday, 5 March 2023

Show lists of users in mongodb shell

 To list all users, use 

mongosh to query the system.users collection:

use admin
db.system.users.find()

No comments:

Post a Comment