Assign to current user Self Service

Andy_McCaskill
Contributor

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?

1 ACCEPTED SOLUTION

dwandro92
Contributor III

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}"

View solution in original post

4 REPLIES 4

emily
Valued Contributor III
Valued Contributor III

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 )

dwandro92
Contributor III

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}"

Andy_McCaskill
Contributor

@dwandro92 Simple, thanks a bunch! Tested it out and works like a charm.

mmcallister
Contributor II

Is there a way to do this for mobile devices?