Can I prompt the user for their username?

New Contributor II

Let me clarify, I recently connected Okta LDAP to our JAMF server so I can now search users and save that info. Is there a way I can prompt end-users for their email (which is the username) then have it search in the users/locations tab to avoid doing this manually? I'm also open to other ideas to more simply pair users to their devices.


Valued Contributor II

You could write a script that prompts the user for their user name and then submits a jamf recon -endUsername $username. That will update the user name in Jamf. Make sure you turn on System Settings -> Computer Management -> Inventory Collection -> Collect user and location information from LDAP.