Skip to content

Commit 97a5702

Browse files
committed
anchor tweak
1 parent bb3ecd3 commit 97a5702

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Modules/CIPPCore/Public/GraphHelper/New-ExoRequest.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ function New-ExoRequest {
6262
}
6363
}
6464
if (!$Anchor) {
65-
$anchor = "APP:SystemMailbox{bb558c35-97f1-4cb9-8ff7-d53741dc928c}@$($tenant.customerId)"
65+
$MailboxGuid = 'bb558c35-97f1-4cb9-8ff7-d53741dc928c'
66+
if ($cmdlet -in 'Set-AdminAuditLogConfig') {
67+
$MailboxGuid = '8cc370d3-822a-4ab8-a926-bb94bd0641a9'
68+
}
69+
$anchor = "APP:SystemMailbox{$MailboxGuid}@$($tenant.customerId)"
6670
}
6771
#if the anchor is a GUID, try looking up the user.
6872
if ($Anchor -match '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$') {

0 commit comments

Comments
 (0)