Skip to main content
Question

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

  • Jul 31, 2023 4:27 AM UTC
  • 7 replies
  • 119 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
  • Jul 31, 2023 12:57 PM UTC

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


DBrowning
Forum|alt.badge.img+26
  • Esteemed Contributor
  • Jul 31, 2023 3:05 PM UTC

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
  • Aug 1, 2023 5:20 AM UTC

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

 


DBrowning
Forum|alt.badge.img+26
  • Esteemed Contributor
  • Aug 1, 2023 10:57 AM UTC

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
  • Aug 2, 2023 2:26 AM UTC

Thanks for the confirmation!


Forum|alt.badge.img+10
  • Valued Contributor
  • Aug 2, 2023 3:01 PM UTC

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
  • Aug 2, 2023 3:52 PM UTC

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.