tonyperkis
Contributor
Contributor

Rule for Compliance works until adding another check

I'm trying to create a compliance rule to check that 2 groups are on our servers. The rule works fine with one group but as soon as I add a second one I get non compliant results when running the template.  Not sure why I'm getting non compliant results when running the template even when the groups are on the server.

pastedImage_0.png

0 Kudos
1 Reply
admin
Immortal
Immortal

I think what you'll want to do is create two rules - one for each group. They should be created against the Groups Data Type, rather then Groups Members. They should be condition, with Must Exist, and the group name or SID being checked in the IF part. You can remove (red X) the THEN part.

The way you have the rule set up currently, it will always fail because it's looking for a single result that satisfies both of your IF conditions.