Skip to main content
Question

Dynamically Assign a Device based on logged in user UPN

  • May 21, 2019
  • 3 replies
  • 34 views

Forum|alt.badge.img+17

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
  • 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
  • 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+17
  • Author
  • Valued Contributor
  • May 22, 2019

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