Is there a way to inject AD UserID and User Full Name into Jamf Username: field and Full Name: field in the User and Location area? Or do I have to use Extension Attributes?
Jamf 10.25.1
Is there a way to inject AD UserID and User Full Name into Jamf Username: field and Full Name: field in the User and Location area? Or do I have to use Extension Attributes?
Jamf 10.25.1
Best answer by ThijsX
@sgiesbrecht You can run this script once a day or any moment you would like to populate the info into Jamf.
#!/bin/zsh
loggedInUser=$( echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ && ! /loginwindow/ { print $3 }' )
echo "Running recon for $loggedInUser `date`..."
#Run recon, submitting the users username which as of 8.61+ can then perform an LDAP lookup
/usr/local/bin/jamf recon -endUsername $loggedInUser
echo "Finished running recon for $loggedInUser `date`..."Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.