Skip to main content

Hi all,

I have been using a script that sets the Recovery Lock password on Silicon Macs without the correct Recovery Lock password already set using the following API

https://JAMF_PRO_URL/api/preview/mdm/commands

 

 

As mentioned here:
https://learn.jamf.com/en-US/bundle/technical-articles/page/Recovery_Lock_Enablement_in_macOS_Using_the_Jamf_Pro_API.html

However it looks like the /preview/mdm/commands has been deprecated, can someone confirm and is there another way to do it or can it only be done with PreStage now?

 

Source: https://developer.jamf.com/jamf-pro/docs/privileges-and-deprecations

It's likely deprecated because the /preview/mdm/commands endpoint has moved out of preview and is now stable at the /v2/mdm/commands endpoint. Looks like you'll just need to slightly adjust your script.


It's likely deprecated because the /preview/mdm/commands endpoint has moved out of preview and is now stable at the /v2/mdm/commands endpoint. Looks like you'll just need to slightly adjust your script.


That's it, thanks!
I wrote to Jamf about updating their documentation.

For anyone else having issues, you also need to update the API privileges to include "View MDM command information in Jamf Pro API"

 

That's it, thanks!
I wrote to Jamf about updating their documentation.

For anyone else having issues, you also need to update the API privileges to include "View MDM command information in Jamf Pro API"

 

Are you able to share your now working again script?


Reply