see all the user and access in mongo cli code example Example 1: mongo show users db.getUsers() Example 2: mongodb get all users db.getUsers();