Weclome to the Forum!
First question I have is, What platform are you using for the webAPI calls? Python? Powershell? C#? .Net? This will be the main jumping point as they each have a different syntax.
I am using both Wget and Python.
So I am using this command in Wget.
>wget -q -O - --no-check-certificate --user=UN --password=PW "https://server:port/remote/policy.find?searchText=" -O C:\policies.txt
This outputs all the policies from ePO just fine but I need more information. Such as is it assigned? or who created the policy?
Policy.Find is only going to give you minimul information about the policy itself.
featureName: Endpoint Encryption Go
objectName: My Default
productName: Endpoint Encryption Go 7.0.0
typeName: Product Settings
You can run the core.ExecuteQuery?queryId=11 (assuming Policy Assignment by Policy Name is queryId 11 in your environment) to get the ObjectId as shown above and then use Policy.Find to identify which policy it is and that will at least give you the number of assignments. I am still looking to see if there is a better way to do tihs.
Thanks! Please keep me updated with anything you can find out for me.
Another question please? Does "count: 1" from the core.executeQuery command means that the policy is not assigned to any group or system?