I ran Spruce against two of our Jamf Pro instances today. The output showed a list of 489 packages that were not used in a policy or configuration. I did a spot check on the list and found that several were indeed still attached to policies.
I then used a MySQL query to determine the policy ID of any package ID that was attached to a policy using this query:
select package_id,policy_id from policy_packages where package_id in ('1','2','3'....);
I was able to take the output of that and compare it to the output from Spruce and found 90 packages that were indeed still attached to policies.
I did a spot check of about 10 of the policies that packages were still attached to, and in all 10 cases there were multiple packages assigned to the policy. I'm thinking that may be what is causing the issue.
Latest version of Spruce that is on GitHub.
Jamf Pro 10.20.1
I saw this behavior on two different Jamf Pro servers, both the same version.
Happy to provide any other data or testing.
Steve
I ran Spruce against two of our Jamf Pro instances today. The output showed a list of 489 packages that were not used in a policy or configuration. I did a spot check on the list and found that several were indeed still attached to policies.
I then used a MySQL query to determine the policy ID of any package ID that was attached to a policy using this query:
select package_id,policy_id from policy_packages where package_id in ('1','2','3'....);
I was able to take the output of that and compare it to the output from Spruce and found 90 packages that were indeed still attached to policies.
I did a spot check of about 10 of the policies that packages were still attached to, and in all 10 cases there were multiple packages assigned to the policy. I'm thinking that may be what is causing the issue.
Latest version of Spruce that is on GitHub.
Jamf Pro 10.20.1
I saw this behavior on two different Jamf Pro servers, both the same version.
Happy to provide any other data or testing.
Steve