Skip to content

Commit 3c2ad2a

Browse files
committed
fix: ExportGrantorsWithNoPermissions did not consider distribution groups correctly
1 parent 1382108 commit 3c2ad2a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Export-RecipientPermissions.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9769,9 +9769,7 @@ try {
97699769

97709770
foreach ($x in $GrantorsToConsider) {
97719771
if (($AllRecipients[$x].RecipientTypeDetails -ilike 'Group*') -or ($AllRecipients[$x].RecipientTypeDetails -ilike '*Group')) {
9772-
if ($ExportDistributionGroupMembers -ieq 'None') {
9773-
# do nothing
9774-
} elseif ($ExportDistributionGroupMembers -ieq 'OnlyTrustees') {
9772+
if ($ExportDistributionGroupMembers -ieq 'OnlyTrustees') {
97759773
if ($AllRecipients[$x].IsTrustee -eq $true) {
97769774
$tempQueue.enqueue($x)
97779775
}

0 commit comments

Comments
 (0)