Hi all,
I would like to be able to get a list of policies and their triggers for a given machine. I've been poking around in the JSS API, but can't find a method of doing it.
The end goal is to have policies run at the login screen programmatically.
I attempted doing this with just ```
jamf policy
``` but it doesn't work the way it should. Example:
md-20013309:~ wgbhit$ sudo jamf policy
Checking for policies triggered by "any"...
Gathering Policy Information from https://[my casper server]
No Policies were found for the any trigger.
md-20013309:~ wgbhit$ sudo jamf policy -id 2243
Checking for policy ID 2243...
Gathering Policy Information from https://[my casper server]
Executing Policy TESTING Office remove and replace...
So, in my continuous uphill battle in the war against Casper, I want to get a list of policies a machine is waiting to run and feed those into the jamf binary.