Skip to main content
Question

Recovery Lock API

  • January 17, 2022
  • 9 replies
  • 19 views

Forum|alt.badge.img+1

Has anyone implemented Recovery Lock on M1 devices using the API successfully ? Could someone share their script if so?

9 replies

Forum|alt.badge.img+4
  • New Contributor
  • 7 replies
  • January 23, 2022

Forum|alt.badge.img+7
  • Valued Contributor
  • 62 replies
  • January 31, 2022

I know you can SetRecoveryLock during DEP... but how do you turn it off after that? 


Forum|alt.badge.img+4
  • New Contributor
  • 7 replies
  • February 10, 2022

I know you can SetRecoveryLock during DEP... but how do you turn it off after that? 


You can use the API to set an empty password, which will turn it off - If you are comfortable using python you the script I mentioned above. 


Forum|alt.badge.img+7
  • Valued Contributor
  • 62 replies
  • February 15, 2022

You can use the API to set an empty password, which will turn it off - If you are comfortable using python you the script I mentioned above. 


Are there any directions in how to invoke the API? 


mike_prather
Forum|alt.badge.img+2
  • New Contributor
  • 9 replies
  • April 20, 2022

Here you go - https://github.com/shbedev/jamf-recovery-lock 


Anyone know if this tool or the recovery_lock_key API command also enables the 60 minute key rotation or can that only be done through the PreStage?


Forum|alt.badge.img+4
  • New Contributor
  • 7 replies
  • April 24, 2022

Anyone know if this tool or the recovery_lock_key API command also enables the 60 minute key rotation or can that only be done through the PreStage?


At the moment, the key rotation is only supported when recovery lock is enabled through PreStage.


mike_prather
Forum|alt.badge.img+2
  • New Contributor
  • 9 replies
  • April 25, 2022

At the moment, the key rotation is only supported when recovery lock is enabled through PreStage.


That's what I figured - thanks for confirming!


dan-snelson
Forum|alt.badge.img+28
  • Honored Contributor
  • 632 replies
  • June 20, 2022

Forum|alt.badge.img+8
  • Valued Contributor
  • 122 replies
  • August 30, 2022

You can find our script here https://gist.github.com/ExperimentalHeaven/09eeafa1122dd4bbac30cb9b91309b52
Simple bash with the use of jq to make the parsing easier