Automating Jamf with code

AdminToDevOps
New Contributor

Hi All,

New to JAMF and wondering what everyone is using for this. Ideally I'd like a Python/Powershell module that can successfully automate processes. I'd use the JAMF/CASPER CLI if you can successfully script with it too (it handles loops, if statements, etc.)
The tasks I'm looking to do right off the bat are;
1) Deployment of apps to machines
2) Query machine statuses (updates pending, versions, etc.)
3) Policy pushes

3 REPLIES 3

mickgrant
Contributor III

i don't know why you need a module to do any of those things as they are all handled natively by jamf as it is

Look
Valued Contributor III

JAMF also has excellent native scripting support built in so basically if you can do it from the command line on a Mac you can do it through JAMF with a script in a policy.

Tangentism
Contributor III

You need to start looking here about the API and for interfacing using python, look here

But you need to understand the topology of the system: you are making queries to the JSS. Not to each machine. You have to wait for each machine to report into the JSS (or prompt it to)