Add this script to a Jamf Policy to get slack notification during a policy run.
You'll need to create a webhook in Slack: https://slack.com/intl/en-gb/help/articles/115005265063-Incoming-webhooks-for-Slack
https://learn.jamf.com/bundle/jamf-pro-documentation-current/page/Scripts.html
- Upload the slack_notify.sh script to your JamfPro.
- Change the
SLACK_WEBHOOK_URL
to your slack webhook - Change the
SLACK_USERNAME
to a username of your choice for example “Jamf Pro” - Optional - Add Parameter Labels
- Add the script to policy
- Decide Priority - do you want notified at the start or end of the policy run?
- Add the Parameter Values. (See Parameter_Values.png)
- Parameter 9 can be either an authors name or the Mac’s serial number if “USE_SERIAL_NUMBER” is entered as the value.
Automated Builds
Logs Uploaded