mongo query for finding user code example Example 1: mongo show users db.getUsers() Example 2: mongodb view users db.getUsers()