Skip to content

Commit d81f98c

Browse files
Fix/bec mailbox rules (KelvinTegelaar#1934)
Fix Set-CIPPMailboxRule passing both Identity and Mailbox to $state-InboxRule
2 parents 0766fc1 + 5834025 commit d81f98c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/CIPPCore/Public/Set-CIPPMailboxRule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323

2424
try {
25-
$null = New-ExoRequest -tenantid $TenantFilter -cmdlet "$State-InboxRule" -Anchor $Username -cmdParams @{Identity = $RuleId; Mailbox = $UserId }
25+
$null = New-ExoRequest -tenantid $TenantFilter -cmdlet "$State-InboxRule" -Anchor $Username -cmdParams @{Identity = $RuleId}
2626
Write-LogMessage -headers $Headers -API $APIName -message "Successfully set mailbox rule $($RuleName) for $($Username) to $($State)d" -Sev 'Info' -tenant $TenantFilter
2727

2828
# Update the cached rule if it exists (without calling Exchange again)

0 commit comments

Comments
 (0)