Skip to main content
Solved

Set Recovery Lock password API deprecated?

  • April 19, 2024
  • 4 replies
  • 152 views

Forum|alt.badge.img+3

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

Best answer by talkingmoose

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.

4 replies

talkingmoose
Forum|alt.badge.img+36
  • Community Manager
  • Answer
  • April 19, 2024

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.


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • April 22, 2024

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"

 

Forum|alt.badge.img+3
  • New Contributor
  • October 22, 2024

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?


Forum|alt.badge.img+4
  • Contributor
  • October 22, 2025

Has anyone come across an updated version of the script?