The gist
With the impending deprecation of basic auth for the Jamf Pro API I took some time to update my computer+device cleanup scripts to use bearer-auth token to do the needful.
The main workflow is largely the same:
- Run an advanced search for devices (computers or mobile devices)
- Export a report that includes JSS IDs
- Copy out the JSS ID column into the array in the appropriate script
- 🆕 Run script and enter
jamfProURL
,jssUser
, andjssPassword
when prompted.
The scripts
Treat this post as a moment in time; these scripts may be fleeting! 🪽
gl;hf
💖 Em