how to view mongo database users code example
Example 1: mongodb list users
use admin
db.system.users.find()
Example 2: mongodb get all users
db.getUsers();
Example 3: mongodb view users
db.getUsers()
use admin
db.system.users.find()
db.getUsers();
db.getUsers()