How to add UserId to claim

,

:wave: @chethangowda018 is this an ASP.NET Core application?

This thread might be helpful: How to get the user identifier in an ASP.NET Core API?, Which authentication flow are you using? The access_token is issued to the user then the ClaimTypes.NameIdentifier will be the userid, if it is issued to another application you will get the clientid

1 Like