Skip to main content

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

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. 


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

 


Shameless pug.

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

Around the 22:50 mark.


Understand now.  Thanks @talkingmoose  and @tculkin