List all Users/Groups in Mac

– Open Directory approach

dscacheutil -q user
dscacheutil -q group

– Each Server approach

dscl localhost list /Local/Default/Users
dscl localhost list /LDAPv3/127.0.0.1/Users

[1]Stack Overflow: List of all users and groups

[2]Listing Open Directory Users on OS X Leopard Server

You May Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *