MacOS – Find account type from command line

accountsmacos

Is there a command i can run from terminal that will show what type of accounts are used

something that reports the username and type of account like below

/Users/fred - mobile, standard
/Users/wilma - network admin

Best Answer

Try this command. It should display what you want.

/usr/bin/dscl . -read /Users/username | 
    egrep 'NFSHomeDirectory|RecordType' | tr '\n' ':' | cut -d':' -f2,5
/Users/username:Users