Skip to content

Commit b77c56c

Browse files
committed
Use Userkey instead of ObjectId
The object id is resolved to the graph api object rather than the user object, this makes the management portal url use the same Userkey as the alert title
1 parent ff2e443 commit b77c56c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/CIPPCore/Public/New-CIPPAlertTemplate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function New-CIPPAlertTemplate {
258258
$LocationTable = ($LocationInfo | ConvertTo-Html -Fragment -As List | Out-String).Replace('<table>', ' <table class="table-modern">')
259259
$IntroText = $IntroText + "<p>The (potential) location information for this IP is as follows:</p>$LocationTable"
260260
}
261-
$ButtonUrl = "$CIPPURL/identity/administration/users/user/bec?userId=$($data.ObjectId)&tenantFilter=$Tenant"
261+
$ButtonUrl = "$CIPPURL/identity/administration/users/user/bec?userId=$($data.Userkey)&tenantFilter=$Tenant"
262262
$ButtonText = 'User Management'
263263
$AfterButtonText = '<p>If this is incorrect, use the user management screen to block the user and revoke the sessions</p>'
264264
}

0 commit comments

Comments
 (0)