Posted on 07-30-2023 09:27 PM
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
Posted on 07-31-2023 05:57 AM
Here's the developer page for the Classic API, https://developer.jamf.com/jamf-pro/reference/findusersbyemailaddress
Posted on 08-02-2023 08:01 AM
Thx for the tip to the website @ssoun . Extremely helpful
Posted on 08-02-2023 08:52 AM
Absolutely, anytime. The website is definitely helpful. It also includes the new Jamf API as well.
Posted on 07-31-2023 08:05 AM
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
Posted on 07-31-2023 10:20 PM
Thank you both! Appreciate your pointing to Classic API endpoints. Wondering similar end-points available in Jamf Pro?
Posted on 08-01-2023 03:57 AM
I don't believe any of that has been moved over to the new API.
Posted on 08-01-2023 07:26 PM
Thanks for the confirmation!