Does anyone know whether there is a way to determine the currently logged in Self Service user via terminal/bash?
I am in the process of developing a script that would map a managed network printer, but in order to do so I also need to provide the Active Directory username in order to map the printer correctly. Since our Macs will not be bound to AD, I cannot trust that the local user accounts will follow our AD user naming conventions correctly. Otherwise I'd simply call id -un and call it a day. Any ideas?
Thanks in advance for any feedback.