I am attempting to get policy statuses for computers from the API. I found a few older posts (from around 2015) saying it wasn't possible, but I also found this post (https://community.jamf.com/t5/jamf-pro/extract-a-jamf-policy-status/m-p/252920) that gave me some hope. I connected with PowerShell and was trying this:
$url = "https://domain.jamfcloud.com/JSSResource/policies/id/318"
Invoke-RestMethod -Uri $url -Method Get -Headers @{"Authorization" = "Bearer $token"}I get a response, but without any information:
xml policy
--- ------
version="1.0" encoding="UTF-8" policyAny ideas on returning policy statuses with the Jamf Pro API?
