Interesting dilemma on something I figured would be super simple: creating a Self Serve policy that runs all available policies. Normally, going into terminal and running "jamf policy" from any admin account brings down any available policies. Simple. Easy. Effective.
Try passing that command via Self Serve (via the "Files & Processes" section) and it's another story entirely: as the jamf agent is already running the self service policy I'm calling, it can't concurrently run a second policy. Makes sense. However, I need a self-serve solution for mobile users who aren't usually on the network: something that will easily run all available updates and policies.
My two solutions aren't working, as shown below, but perhaps what I'm asking is impossible. Is it even possible to create a Self Serve policy that will run all other available policies?
Executing Policy Run All Policies - Self Service...
[STEP 1 of 1]
Running command jamf policy...
Result of command:
This policy trigger is already being run: root 627 18.6 0.2 689620 15644 ?? SN 3:26PM 0:00.34 /usr/sbin/jamf policy -id 105 -showSteps -username -selfServiceOnly -forceNoRecon
Same result if I pass osascript -e 'do shell script "jamf policy"':
Executing Policy Run All Policies - Self Service...
[STEP 1 of 1]
Running command osascript -e 'do shell script "jamf policy"'...
Result of command:
This policy trigger is already being run: root 4895 11.5 0.2 689620 15648 ?? SN 4:38PM 0:00.30 /usr/sbin/jamf policy -id 105 -showSteps -username -selfServiceOnly -forceNoRecon