List users in the current database.
Section: Users and roles
Show users
javascript
javascript
db.getUsers()Explanation
Useful when auditing local database users.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Users and roles