Skip to content

Commit

Permalink
Merge pull request #1125 from JohnDuprey/dev
Browse files Browse the repository at this point in the history
offboarding tweaks
  • Loading branch information
JohnDuprey authored Sep 26, 2024
2 parents c77d401 + 92d2ebb commit 79516c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modules/CIPPCore/Public/Invoke-CIPPOffboardingJob.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function Invoke-CIPPOffboardingJob {
OrchestratorName = "OffboardingMailboxPermissions_$Username"
SkipLog = $true
}
Start-NewOrchestration -FunctionName CIPPOrchestrator -InputObject ($InputObject | ConvertTo-Json -Depth 10)
$null = Start-NewOrchestration -FunctionName CIPPOrchestrator -InputObject ($InputObject | ConvertTo-Json -Depth 10)
"Removal of permissions queued. This task will run in the background and send it's results to the logbook."
}
}
Expand Down
2 changes: 1 addition & 1 deletion Modules/CIPPCore/Public/Remove-CIPPMailboxPermissions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function Remove-CIPPMailboxPermissions {

try {
if ($userid -eq 'AllUsers') {
$Mailboxes = New-ExoRequest -tenantid $TenantFilter -cmdlet 'Get-Mailbox' -Property UserPrincipalName
$Mailboxes = New-ExoRequest -tenantid $TenantFilter -cmdlet 'Get-Mailbox' -Select UserPrincipalName
$Mailboxes | ForEach-Object -Parallel {
Import-Module '.\Modules\AzBobbyTables'
Import-Module '.\Modules\CIPPCore'
Expand Down

0 comments on commit 79516c4

Please sign in to comment.