Navigation
This version will reach end of life on Feb 2018. To upgrade, go to the Learn more about upgrading your version of MongoDB.

db.getUsers()

Definition

db.getUsers()

Returns information for all the users in the database.

db.getUsers() wraps the usersInfo command.

Required Access

To view another user’s information, you must have the viewUser action on the other user’s database.

Users can view their own information.