We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8917683 commit db2436bCopy full SHA for db2436b
Modules/CIPPCore/Public/GraphHelper/New-ExoRequest.ps1
@@ -66,7 +66,11 @@ function New-ExoRequest {
66
if ($cmdlet -in 'Set-AdminAuditLogConfig') {
67
$MailboxGuid = '8cc370d3-822a-4ab8-a926-bb94bd0641a9'
68
}
69
- $anchor = "APP:SystemMailbox{$MailboxGuid}@$($tenant.customerId)"
+ if ($Compliance.IsPresent) {
70
+ $Anchor = "UPN:SystemMailbox{$MailboxGuid}@$($tenant.initialDomainName)"
71
+ } else {
72
+ $anchor = "APP:SystemMailbox{$MailboxGuid}@$($tenant.customerId)"
73
+ }
74
75
#if the anchor is a GUID, try looking up the user.
76
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