JAMF API - Prestage Enrollment

rkeleghan
New Contributor III

Hi All,

Just wondering .. Using the JAMF API - Can I check that prestage a macOS in enrolled in or part of?

 

Rk

2 REPLIES 2

danitree
New Contributor III

Hi @rkeleghan,

If you're using the Classic API you can't retrieve any info of your PreStage like computers went through, profiles used, or skip setup items.

You could only check if a specific computer has gone through DEP and you would assume that a PreStage has been created thanks to the "management_status" property:

Screenshot 2021-10-29 at 15.16.24.png

 

With the Jamf Pro API you could check the option "/v2/computer-prestages/{id}" to see all the devices with that exact profile and therefore make other searches:

Screenshot 2021-10-29 at 15.24.38.pngScreenshot 2021-10-29 at 15.24.57.png

 

Hope it helps.

Using talking moose 's code (thanks a lot!) I did a litte script to move machines from one PrestageEnrollment to another https://gist.github.com/MichaelandMore/d19ccf71f5486ce0db442eedf85953dc