Skip to main content
Solved

Set Recovery Lock password API deprecated?

  • Apr 19, 2024 1:53 PM UTC
  • 4 replies
  • 395 views

Forum|alt.badge.img+5

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.

View original

4 replies

talkingmoose
Forum|alt.badge.img+36
  • Community Manager
  • Answer
  • Apr 19, 2024 3:56 PM UTC

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+5
  • Author
  • New Contributor
  • Apr 22, 2024 8:46 AM UTC

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
  • Oct 22, 2024 7:17 PM UTC

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
  • Oct 22, 2025 9:48 PM UTC

Has anyone come across an updated version of the script?