Searching for a mobile device by IMEI with the API

adayne
New Contributor II

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!

1 ACCEPTED SOLUTION

kyle_erickson
New Contributor III

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.

View solution in original post

2 REPLIES 2

kyle_erickson
New Contributor III

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.

adayne
New Contributor II

That did it. Thanks so much!