Skip to main content
Solved

How to locate the Policy ID?

  • August 15, 2021
  • 3 replies
  • 173 views

Forum|alt.badge.img+2

Hello!

I know there is a command to trigger policies which is "jamf policy -id<number>" and I am wondering where I can find the policy ID number. I was looking at the each policy I made, but I couldn't find or see anything related to the ID number. Does anyone know a way to find the policy ID?

Best answer by ejadadic

Greetings!

 

The policy ID can be located on top of the url example: https://companyname.jamfcloud.com/policies.html?id=25&o=r
Policy ID would be 25, so when you run a jamf policy -id 25 that will trigger that policy if your device is in that scope. I hope this helps

3 replies

ejadadic
Forum|alt.badge.img+10
  • Contributor
  • Answer
  • August 16, 2021

Greetings!

 

The policy ID can be located on top of the url example: https://companyname.jamfcloud.com/policies.html?id=25&o=r
Policy ID would be 25, so when you run a jamf policy -id 25 that will trigger that policy if your device is in that scope. I hope this helps


Forum|alt.badge.img+2
  • Author
  • New Contributor
  • August 16, 2021

Greetings!

 

The policy ID can be located on top of the url example: https://companyname.jamfcloud.com/policies.html?id=25&o=r
Policy ID would be 25, so when you run a jamf policy -id 25 that will trigger that policy if your device is in that scope. I hope this helps


Got it and thank you!!!


Forum|alt.badge.img+12
  • Valued Contributor
  • August 17, 2021

Got it and thank you!!!


While using the policy ID is certainly an option, I prefer to add a custom trigger to policies that I want to trigger from the command line or a script and use that custom trigger. If you select good names for the custom trigger this becomes much more readable than using the policy ID. Do you remember which policy had ID 354?