Skip to content

Commit c095254

Browse files
committed
Add context.AddAttribute to readme.txt
1 parent 50ee358 commit c095254

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ An async version `EnrichAsync` is also available.
220220
{
221221
var upn = context.HttpContext.User.Claims
222222
.FirstOrDefault(c => c.Type == "upn")?.Value ?? "Unknown";
223-
context.SetCustomerResourceId(upn);
223+
context.SetCustomerResourceId(upn); // Set CustomerResourceId
224+
context.AddAttribute("UserPrincipalName", upn); // Add custom attribute
224225
});
225226
```
226227

0 commit comments

Comments
 (0)