Posted on 11-16-2020 12:36 PM
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
Solved! Go to Solution.
Posted on 11-17-2020 07:09 AM
@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`..."
Posted on 11-16-2020 02:29 PM
That is controlled under Settings | System Settings | LDAP Servers, where AD is a type of LDAP Server. Is that failing for you in some way?
Posted on 11-17-2020 07:05 AM
K, got it - it does work. Now I know where to look for additional AD attributes - Thx
Now can it be automatically updated with the Currently logged in user? Don't want to manually update each device
Posted on 11-17-2020 07:09 AM
@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`..."
Posted on 11-17-2020 08:05 AM
Thank you txhaflaire
Posted on 06-04-2021 12:41 PM
@txhaflaire can your script be run once a day to update user's info in Jamf Pro? We currently have an issue where when looking at the computer's inventory record under user info, it shows the correct "username" but the Full Name and Email fields are showing someone else's name. This isn't happening for all users but more than it should be.
We are currently now using DEP enrollment for M1 Macs, and the user authenticates with AD creds during enrollment.
I have a case open with support as something similar happened last year, but we thought because we used to use user-initiated enrollment via the URL, that was the cause, but it seems like there's an issue with our mapping from LDAP to Jamf Pro. It's just confusing because it's not affecting all users.
Posted on 06-08-2021 09:02 AM
Posted: 6/4/2021 at 2:41 PM CDT by jmdaul @txhaflaire can your script be run once a day to update user's info in Jamf Pro? We currently have an issue where when looking at the computer's inventory record under user info, it shows the correct "username" but the Full Name and Email fields are showing someone else's name. This isn't happening for all users but more than it should be. We are currently now using DEP enrollment for M1 Macs, and the user authenticates with AD creds during enrollment. I have a case open with support as something similar happened last year, but we thought because we used to use user-initiated enrollment via the URL, that was the cause, but it seems like there's an issue with our mapping from LDAP to Jamf Pro. It's just confusing because it's not affecting all users.
@jmdaul You might have the answer already but I believe that's to do with how Jamf handles updating blank fields for users.
eg. If the new user has an empty attribute while the existing user has that field filled, when updating the record, it retains the previous users data for that field instead of clearing them.