Jamf Pro API - Get Device ID(s) by passing User Email

Kalai
New Contributor II

Hi Team,

Wondering, Jamf Pro API returns all the device-Id(s) associated with the User, by passing user email/id as input? If yes, can you point to the API end-points?

 

Thank You,

Kalai

 

7 REPLIES 7

ssoun
New Contributor III

Here's the developer page for the Classic API, https://developer.jamf.com/jamf-pro/reference/findusersbyemailaddress

Thx for the tip to the website @ssoun .  Extremely helpful

ssoun
New Contributor III

Absolutely, anytime. The website is definitely helpful. It also includes the new Jamf API as well.

DBrowning
Valued Contributor II

this should get you what you're looking for.

curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET -k --header "Authorization: Bearer ${api_token}" "$jssURL"/JSSResource/users/email/$email | xpath -e /users/user/links/computers/computer/id

Kalai
New Contributor II

Thank you both! Appreciate your pointing to Classic API endpoints. Wondering similar end-points available in Jamf Pro?

 

DBrowning
Valued Contributor II

I don't believe any of that has been moved over to the new API.

Kalai
New Contributor II

Thanks for the confirmation!