Posted on 10-30-2024 05:47 AM
Hi All,
Has anyone got any information on how to create an app for the self service portal that allow a user run Jam policy script ?
sudo jamf policy
Posted on 10-30-2024 05:51 AM
#!/bin/bash
# Run the jamf policy command
jamf policy
# Exit the script
exit 0
Posted on 10-30-2024 05:55 AM
or just use jamf policy
(without the sudo) in the files and processes payload
10-30-2024 06:39 AM - edited 10-30-2024 06:40 AM
If you want to run a specific policy then use: jamf policy -id {id number}
You can get the ID number from the URL of the policy in Jamf Pro (e.g. ........../policies.html?id=684&o=r)
Posted on 10-30-2024 06:45 AM
Since the Policy ID can't be reassigned if a policy is accidentally deleted, I almost always use the Custom Trigger option. Then you could use "jamf policy -event WhatEverYourTriggerIs".
Posted on 10-31-2024 02:48 AM
Use the file and process payload in the policy add sudo Jamf policy in the execute command and make it available in self service