Skip to main content
Solved

Auto-populate user info from LDAP using Jamf API?


Forum|alt.badge.img+7
  • Contributor
  • 50 replies

Apologies if this has been answered elsewhere.

I'm experimenting with modifying the username value using the REST API rather than our current method of running jamf recon -endUsername $user, but realized that the former won't update the corresponding user attributes via LDAP as does inventory collection.

I realize I can just PUT the Real Name and Email Address values as well... but that would kind of defeat the purpose of mapping LDAP in the first place, not to mention invite the possibility of inconsistency.

Is there a workaround for this to allow both username updates via API + LDAP autopopulation? Or am I required to update it via recon to achieve this?

Best answer by dgreening

If you use the API to place the AD username into the "username" field in the computer record, and also have Jamf set to query LDAP on inventory lookup (in the inventory collection prefs) you should be good to go.

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+18
  • Honored Contributor
  • 645 replies
  • Answer
  • May 18, 2017

If you use the API to place the AD username into the "username" field in the computer record, and also have Jamf set to query LDAP on inventory lookup (in the inventory collection prefs) you should be good to go.


Forum|alt.badge.img+7
  • Author
  • Contributor
  • 50 replies
  • May 19, 2017

@dgreening : I was literally just too impatient. :| The fields updated a few minutes after the username value was changed. Problem solved or I guess there was never a problem at all. Appreciate the help regardless!

Just kidding it's not solved.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings