As part of setting up Self Service policies in Jamf Pro, it’s nice to include a description for your customers of what they’re getting when they select a particular Self Service policy.
However, sometimes folks forget to add these descriptions and it can be hard to figure this out later which ones were missed without manually checking each policy.
To help with situations like this, I have a script which does the following:
- Checks all policies on a Jamf Pro server.
- Identifies which ones are Self Service policies which do not have descriptions
- Displays a list of the relevant policies
For more details, please see below the jump.
The script is named Jamf_Pro_Detect_Self_Service_Policies_Without_Descriptions.sh. For authentication, the script can accept hard-coded values in the script, manual input or values stored in a ~/Library/Preferences/com.github.jamfpro-info.plist file.
The plist file can be created by running the following commands and substituting your own values where appropriate:
To store the Jamf Pro URL in the plist file:
defaults write com.github.jamfpro-info jamfpro_url https://jamf.pro.server.goes.here:port_number_goes_here
To store the account username in the plist file:
defaults write com.github.jamfpro-info jamfpro_user account_username_goes_here
To store the account password in the plist file:
defaults write com.github.jamfpro-info jamfpro_password account_password_goes_here
When the script is run, you should see output similar to that shown below.
The script is available below, and at the following address on GitHub:
Jamf_Pro_Detect_Self_Service_Policies_Without_Descriptions.sh: