翻译或纠错本页面

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.