I use Trigger in our Mac deployment workflow to prompt the deployment technician on the details of the Mac’s end user. I use this information to then create the user account, enable the newly created account for FileVault, and to give them administrator rights, if required.
All of this is run from the one JSS script that:
- creates the HTML file to present in the web view,
- runs Trigger so that the web view is presented (and waits for the user to click one of the two button options,
- parses the results and then calls the functions required to create the user account, enabled FileVault, and provide administrator rights accordingly.
For the sake of simplicity, I’ve commented out the functions that do the actual grunt work of creating the user account and enabling FileVault, but I will share the code in a future post if there is any interest.