A simple way to get the MacOS users list, from security perspective this a simple way to recognize unauthorized and suspicion user activities
# List All Users bash> dscl . -list /Users # Exclude user/s from users list bash> dscl . -list /Users | grep -vE "_|root|nobody|daemon|Guest"