Skip to main content
Question

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

  • July 31, 2023
  • 7 replies
  • 53 views

Forum|alt.badge.img+3

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

Forum|alt.badge.img+8
  • Contributor
  • July 31, 2023

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


DBrowning
Forum|alt.badge.img+24
  • Esteemed Contributor
  • July 31, 2023

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

Forum|alt.badge.img+3
  • Author
  • New Contributor
  • August 1, 2023

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

 


DBrowning
Forum|alt.badge.img+24
  • Esteemed Contributor
  • August 1, 2023

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

 


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


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • August 2, 2023

Thanks for the confirmation!


Forum|alt.badge.img+10
  • Valued Contributor
  • August 2, 2023

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


Forum|alt.badge.img+8
  • Contributor
  • August 2, 2023

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


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