Skip to main content
Solved

Is it possible to pull the username from Self Service Log In?

  • March 23, 2017
  • 1 reply
  • 3 views

Forum|alt.badge.img+7

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.

Best answer by rob_hernandez

Looks like I may have answered my own question (after extensive searching before and after this post)...

https://www.jamf.com/jamf-nation/articles/146/script-parameters

TIL - My SearchFu is weak...

1 reply

Forum|alt.badge.img+7
  • Author
  • Contributor
  • 14 replies
  • Answer
  • March 23, 2017

Looks like I may have answered my own question (after extensive searching before and after this post)...

https://www.jamf.com/jamf-nation/articles/146/script-parameters

TIL - My SearchFu is weak...