Jamf Pro API GET advanced mobile device search not returning search results

arpierson
New Contributor III

I'm trying to write a script that feeds the new API a list of usernames, creates a mobile device advanced search where the criteria is 'username1 OR username2 OR username3...', then calls that search and writes the serial numbers of the devices returned in the search to a text file.

The problem I'm running into is that on the new API, calling GET api/v1/advanced-mobile-device-searches/{id} only returns the search object itself (search name, ID number, search criteria, display fields, and site), but doesn't actually return the search results. I've gone to the web interface for the Classic API and using the Classic API to GET a search does return the search results. Is this expected or am I doing something wrong?

1 REPLY 1

R2IT
New Contributor

I know this is an old post, but were you ever able to figure out how to get the advanced search results via the new API? I am having the same issue at the moment.