mongo db command to check all the users inside the db code example Example 1: mongodb list users use admin db.system.users.find() Example 2: mongodb view users db.getUsers()