jssimporter / Spruce

Spruce is deprecated. Please see the wiki for alternatives.
GNU General Public License v3.0
148 stars 22 forks source link

Computer groups are reported as "unused" even if they are used for Restricted Software #24

Closed homebysix closed 6 years ago

homebysix commented 6 years ago

If a computer group is used in Restricted Software (either as a target or as an exclusion), Spruce doesn't omit it from the Unused section of its computer groups report.

Here's the relevant section of the Restricted Software API result:

<restricted_software>
  <general>
    <id>24</id>
    <name>Restrict 10.13 Developer Beta</name>
    <process_name>Install macOS 10.13 Beta.app</process_name>
    <match_exact_process_name>true</match_exact_process_name>
    <send_notification>false</send_notification>
    <kill_process>true</kill_process>
    <delete_executable>false</delete_executable>
    <display_message>High Sierra is not certified to be compatible with software on your Mac. Please contact the Help Desk for assistance.</display_message>
    <site>
      <id>-1</id>
      <name>None</name>
    </site>
  </general>
  <scope>
    <all_computers>false</all_computers>
    <computers/>
    <computer_groups>
      <computer_group>
        <id>79</id>
        <name>Has High Sierra-incompatible software</name>
      </computer_group>
    </computer_groups>
    <buildings/>
    <departments/>
    <exclusions>
      <computers/>
      <computer_groups>
        <computer_group>
          <id>392</id>
          <name>10.13 Early Access Allowed</name>
        </computer_group>
      </computer_groups>
      <buildings/>
      <departments/>
      <users/>
    </exclusions>
  </scope>
</restricted_software>