Last updated on 14. October 2022
Until today I have not found a solution that provides the personal recovery key via the API. In daily operation it happens that users or the helpdesk need their personal recovery key. To save time and costs I had the idea to integrate this action into a Google Chat Bot. Unfortunately, this was not possible with the Jamf on-board api, so that I first built a way around it. In my example I wrote Web Endpoint which calls my script and returns the recovery key.
From the commandline the script return the recovery key if exist.
I have uploaded the source code for the script to github. It is important to know that this is not an official path. There is also no API addressed but it is the normal frontend pages retrieved.