Skip to main content
Solved

Searching for a mobile device by IMEI with the API

  • May 21, 2021
  • 2 replies
  • 27 views

Forum|alt.badge.img+3

Hi,

I am trying to figure out a way to find a mobile device by its IMEI with the API but I am running into issues getting Jamf to return the correct information. I'm working with this constraint because the department that handles the hardware in my org has scanned mobile devices into the property management system by IMEI, and that value is the only primary key I can currently use to relate the devices between various IT systems.

For example, our property database has mobile devices listed with IMEI and asset tag. I would like to assign asset tags to devices in Jamf, but the only common field between the property database and Jamf is the IMEI. It is straightforward to pull a specific device by serial number or JSS ID, but the IMEI seems to be handled differently.

Any assistance will be extremely appreciated!

Best answer by kyle_erickson

I tested and if you use https://<YOURJAMFURL>/JSSResource/mobiledevices/match/<IMEI NUMBER> you can find the object that matches the IMEI. Only thing of note is that I had to include the spaces which in my case meant using %20 in the URL.

2 replies

Forum|alt.badge.img+8
  • Contributor
  • Answer
  • May 21, 2021

I tested and if you use https://<YOURJAMFURL>/JSSResource/mobiledevices/match/<IMEI NUMBER> you can find the object that matches the IMEI. Only thing of note is that I had to include the spaces which in my case meant using %20 in the URL.


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • May 21, 2021

That did it. Thanks so much!