Skip to content

Commit

Permalink
Fixes scheduled offboarding bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Nov 20, 2023
1 parent 0e4da13 commit 3bc50da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/CIPPCore/Public/Invoke-CIPPOffboardingJob.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ function Invoke-CIPPOffboardingJob {
}
{ $_."RemovePermissions" } {
if ($RunScheduled) {
Remove-CIPPMailboxPermissions #Finish this
Remove-CIPPMailboxPermissions -PermissionsLevel @("FullAccess", "SendAs", "SendOnBehalf") -userid "AllUsers" -AccessUser $UserName -TenantFilter $TenantFilter -APIName $APINAME -ExecutingUser $ExecutingUser

}
else {
$object = [PSCustomObject]@{
Expand Down

0 comments on commit 3bc50da

Please sign in to comment.