Posted on 07-11-2016 03:12 PM
Hey guys. I am trying to figure out a way to allow the users to assign the current device to them.
The idea is we would hand the devices to a large amount of people. Have them log into Self Service with their Active Directory accounts, and then click a button to then assign that device to them using those credentials that logged into Self Service.
Anyone have a idea how to get this done?
Solved! Go to Solution.
Posted on 07-12-2016 09:26 AM
As long as you're having the users sign into Self Service with their AD accounts, then just putting the following in a script would accomplish the task:
#!/bin/bash
jamf recon -endUsername "${3}"
Posted on 07-11-2016 03:16 PM
Back when I was playing around with customizing QuickAdd packages for provisioning machines I made up a script that uses cocoaDialog to prompt the person running the QuickAdd package for a username to assign the machine to.
https://github.com/smashism/quick-add-scripts/blob/master/get_username.sh
Maybe you could have the script run in a policy that someone runs from within Self Service?
(Here's more on how I used it with a QuickAdd package:
Getting more out of a QuickAdd package )
Posted on 07-12-2016 09:26 AM
As long as you're having the users sign into Self Service with their AD accounts, then just putting the following in a script would accomplish the task:
#!/bin/bash
jamf recon -endUsername "${3}"
Posted on 07-12-2016 02:45 PM
@dwandro92 Simple, thanks a bunch! Tested it out and works like a charm.
Posted on 11-17-2016 03:50 PM
Is there a way to do this for mobile devices?