dscacheutil -q user | grep -A 3 -B 2 -e uid:\ 5'[0-9][0-9]'
dscl . list /Users | grep -v '^_'
参考:
How can I list all user accounts in the terminal?