Skip to content

Commit

Permalink
Merge pull request #1930 from microsoft/bilong-ssv3
Browse files Browse the repository at this point in the history
Remove permissions without piping
  • Loading branch information
dpaulson45 authored Jan 29, 2024
2 parents a06d5e6 + 368ef08 commit c4e220f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function Remove-InvalidPermission {
) {
if ($PSCmdlet.ShouldProcess("$($result.FolderIdentity)", "Remove $($perm.User.DisplayName)")) {
Write-Host "Removing $($perm.User.DisplayName) from folder $($result.FolderIdentity)"
$perm | Remove-PublicFolderClientPermission -Confirm:$false
Remove-PublicFolderClientPermission $result.FolderEntryId -User $perm.User.DisplayName -Confirm:$false
}
}
}
Expand Down

0 comments on commit c4e220f

Please sign in to comment.