id — return user identity
who — display who is logged in
dscacheutil — gather information, statistics and initiate queries to the Directory Service cache.
List real users:
dscl . list /Users | grep -v '_'
Get info on a user:
dscacheutil -q user -a name Empfang
Set a user as mobile (offline account):
sudo /System/Library/CoreServices/ManagedClient.app/Contents/Resources/createmobileaccount -n [AD_username]
Change the full name of a user using the GUI
- System preferences / Users & Groups, unlock it
- Control-click on the user !! -> “Advanced Options”
- change the damn name…