mongo
On this page
db.
getUsers
Returns information for all the users in the database.
db.getUsers() wraps the usersInfo command.
db.getUsers()
usersInfo
To view another user’s information, you must have the viewUser action on the other user’s database.
viewUser
Users can view their own information.