Automatically email Macfolk their pending updates
Notifier is a Python Script to send emails to Mac users with pending updates (according to Jamf patch
management) using the Jamf API and SMTP!
How it works
- Grab API username and password the
JAMFREPORTUSER
andJAMFREPORTPASS
environment variables. - Get a bearer token from the Jamf server. This is used for all further authentication.
- Gets a list of all Patch Management titles on the Jamf server
- For each Patch Management title, get a list of every version
- Record the first version number, skip any computers on this version (they’re up to date!)
- Skip any computers with an Unknown version. Usually this means a version newer than what Jamf has an update for.
- Get a count of computers on each version
- If there’s exactly one computer, record the information in the