Navigation
This version has reached end of life on October 2016. 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

You must have the viewUser action on another user’s database to view the other user’s credentials.

You can view your own information.