Skip to main content
Question

User Location info

  • April 4, 2018
  • 6 replies
  • 33 views

KyleEricson
Forum|alt.badge.img+17

Is there a way to have an sh script update the user location info in the JAMF console?

6 replies

Forum|alt.badge.img+10
  • Valued Contributor
  • April 4, 2018

You could use the api to loop through a csv and patch the info.


KyleEricson
Forum|alt.badge.img+17
  • Author
  • Valued Contributor
  • April 4, 2018

I have an sh script that I will run on new macs where the tech types in the Ad username. Can this be used for finding this info?


Forum|alt.badge.img+8
  • Contributor
  • April 4, 2018

We have a script that grabs the current IP Address and based off of network segments and buildings, sets the Building.

You can also use the command "jamf recon -endUsername $3" to update the username with the currently logged in user. If this is bound to AD it will then query your AD for the rest of the info.


Forum|alt.badge.img+5

There probably is a script to get this done. But like strider.knh, we use IP set the building. While it doesn't fill the location, it is sufficient to sort people by their building (for our purposes).


bmortens115
Forum|alt.badge.img+15
  • Contributor
  • April 4, 2018

try looking at the MUT: https://jssmut.weebly.com/
Easy GUI for the API to upload a CSV that will look for a device serial number and add a username based on that serial to the Jamf Pro Server. Then rinse and repeat for other info based on the serial number


KyleEricson
Forum|alt.badge.img+17
  • Author
  • Valued Contributor
  • April 6, 2018

Ok another idea I can create a url call and open directly to this machine in jamf pro console. How can I get the JAMF computer ID based on the serial number and then create the url to open at the end of the sh script.