List all Users/Groups in Mac

Spread the love

– 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

[ref]Stack Overflow: List of all users and groups[/ref]

[ref]Listing Open Directory Users on OS X Leopard Server[/ref]

Leave a Reply

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

Threesome