Skip to content

Commit

Permalink
Ignore excludes for Synchronization Accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
weyCC81 committed Jan 18, 2025
1 parent 2c0ed18 commit ca251ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion powershell/public/Test-MtCaGap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ function Test-MtCaGap {
$_.Conditions.Users.IncludeUsers | ForEach-Object { $includedUsers.Add($_) | Out-Null }
$_.Conditions.Users.ExcludeGroups | ForEach-Object { $excludedGroups.Add($_) | Out-Null }
$_.Conditions.Users.IncludeGroups | ForEach-Object { $includedGroups.Add($_) | Out-Null }
$_.Conditions.Users.ExcludeRoles | ForEach-Object { $excludedRoles.Add($_) | Out-Null }
If ($_ -ne "d29b2b05-8046-44ba-8758-1e26182fcf32") {
# Role: 'Directory Synchronization Accounts' excluded
# Policy: 'Multifactor authentication for Microsoft partners and vendors'
$_.Conditions.Users.ExcludeRoles | ForEach-Object { $excludedRoles.Add($_) | Out-Null }
}
$_.Conditions.Users.IncludeRoles | ForEach-Object { $includedRoles.Add($_) | Out-Null }
$_.Conditions.Applications.ExcludeApplications | ForEach-Object { $excludedApplications.Add($_) | Out-Null }
$_.Conditions.Applications.IncludeApplications | ForEach-Object { $includedApplications.Add($_) | Out-Null }
Expand Down

0 comments on commit ca251ac

Please sign in to comment.