Skip to main content
Question

Dynamically Assign a Device based on logged in user UPN


Forum|alt.badge.img+16
  • Valued Contributor
  • 119 replies

Is there a way to dynamically assign a device based on the current logged in user for use with Apple Classroom for Student mac or for any purpose thereof using the API?

3 replies

Forum|alt.badge.img+16
  • Honored Contributor
  • 330 replies
  • May 21, 2019

You don't even need to use the API.

Decide how you want to grab the user to assign it to ($Username in the below command) and run:

/usr/local/jamf/bin/jamf recon -endUsername $Username


Forum|alt.badge.img+11
  • Contributor
  • 225 replies
  • May 21, 2019

@Eigger, in order to do what @hkabik suggested, you also need to make sure that Collect user and location information from LDAP is checked.. This can be enabled by navigating to Computer Management>Inventory Collection in the JSS Settings.


Forum|alt.badge.img+16
  • Author
  • Valued Contributor
  • 119 replies
  • May 22, 2019

Nice! good to know, will test and report back. Thank you both!


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