I'd like to export the FileVault2 recovery keys and iOS device Activation Lock Bypass Codes programmatically on a scheduled basis. I know the JSS has an API where stuff like this can be done. Has anyone done anything similar, before I go re-inventing the wheel?
Solved
Export information via API

Best answer by mm2270
You cannot export the FV2 keys unfortunately. They are stored in encrypted fields in the db and can't be accessed with the API. They don't show up in the computer records or anywhere else in the API.
As an aside, if you would like to be able to report and/or export those keys, please vote up this feature request from yours truly from several years ago. It hasn't gotten any real attention to my knowledge. I'm still waiting for Jamf to help us with that.
I'm not sure about the iOS activation lock bypass codes. They may be in there, but I have not looked.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.