Skip to main content
Solved

Get User's Jamf Data from User's Workstation Terminal

  • January 27, 2022
  • 4 replies
  • 33 views

Forum|alt.badge.img+10

Is there a way to get the user's data that is in Jamf Pro system from Terminal?

I have a script that writes into the System.log and has the host name but they also want the user's name (which I have) and Dept. (which I need) and possible other fields

Best answer by talkingmoose

Shameless pug.

How to collect user information and apply it throughout Jamf Pro | JNUC 2021

Around the 22:50 mark.

4 replies

Forum|alt.badge.img+5
  • New Contributor
  • January 27, 2022

One way to do it is an API call to get that information. First need to setup an API view-only account. In the script querry for the computer from the computer's serial number.  Then lookup the department from JAMF. 


Forum|alt.badge.img+10
  • Author
  • Valued Contributor
  • January 27, 2022

I'm very new to API (haven't done one yet) so how would I do this?

 


talkingmoose
Forum|alt.badge.img+36
  • Community Manager
  • Answer
  • January 27, 2022

Forum|alt.badge.img+10
  • Author
  • Valued Contributor
  • January 27, 2022

Understand now.  Thanks @talkingmoose  and @tculkin