I have a script:-
#!/bin/sh /usr/local/jamf/bin/jamf policy -event soe
(nb: also tried -trigger)
This script is attached to a Policy that is available in Self Service.
I can launch it from Self Service and I see in the logs "Checking for policy ID XXX..." but nothing actually gets fired off.
If I run the command manually on the machine, it works just fine, just doesn't seem to work via script/self service.