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

sgiesbrecht
Contributor III

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

1 ACCEPTED SOLUTION
4 REPLIES 4

tculkin
New Contributor III

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. 

sgiesbrecht
Contributor III

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

 

talkingmoose
Moderator
Moderator

sgiesbrecht
Contributor III

Understand now.  Thanks @talkingmoose  and @tculkin