5

I'm using User.FindFirstValue(ClaimTypes.NameIdentifier) to retrieve the user Id of the current logged in user. The resulting seems to be a random string.

If I look up a user in Azure AD the ID there looks like a guid. And if lookup a user in the Graph Api the Id is also a Guid. Is there some way to relate the two properties?

Or is the .net core current user not related to the logged in Azure Ad user?

2

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.