Skip to main content
Solved

Assign to current user Self Service

  • July 11, 2016
  • 4 replies
  • 10 views

Forum|alt.badge.img+5

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?

Best answer by dwandro92

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

4 replies

emily
Forum|alt.badge.img+24
  • Hall of Fame
  • 871 replies
  • July 11, 2016

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 )


Forum|alt.badge.img+9
  • Contributor
  • 125 replies
  • Answer
  • July 12, 2016

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

Forum|alt.badge.img+5
  • Author
  • Contributor
  • 52 replies
  • July 12, 2016

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


Forum|alt.badge.img+9
  • Valued Contributor
  • 109 replies
  • November 17, 2016

Is there a way to do this for mobile devices?