Skip to content

Commit 2ffff54

Browse files
Merge pull request KelvinTegelaar#1907 from Zacgoose/Userkey-in-alert
Use Userkey instead of ObjectId
2 parents 1faaca2 + b77c56c commit 2ffff54

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)