Skip to content

Commit

Permalink
undo-ing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dagarwal-mitre committed Jan 9, 2025
1 parent 320f32b commit 88c5a09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PowerShell/ScubaGear/Rego/Utils/AAD.rego
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package utils.aad
import rego.v1
import data.utils.report.ArraySizeStr
import data.utils.report.Description
import data.utils.key.IsEmptyContainer
import data.utils.key.Contains
import data.utils.key.Count
import data.utils.key.ConvertToSet
Expand Down Expand Up @@ -151,10 +152,12 @@ GroupExclusionsFullyExempt(Policy, PolicyID) := true if {
PolicyConditionsMatch(Policy) := true if {
Contains(Policy.Conditions.Users.IncludeUsers, "All") == true
Contains(Policy.Conditions.Applications.IncludeApplications, "All") == true
Count(Policy.Conditions.Users.ExcludeUsers) == 0
# Count(Policy.Conditions.Users.ExcludeUsers) == 0
# Count(Policy.Conditions.Users.ExcludeRoles) == 0
# Count(Policy.Conditions.Users.ExcludeGroups) == 0
# Count(Policy.Conditions.Applications.ExcludeApplications) == 0
IsEmptyContainer(Policy.Conditions.Users.ExcludeRoles) == true


Policy.State == "enabled"
} else := false
Expand Down

0 comments on commit 88c5a09

Please sign in to comment.