ASP Core Azure Active Directory - Get First and Last Name

Viewed 2466
2 Answers

I use this, this gets you the first and last name together -

var name = claims.FirstOrDefault(c => c.Type == "name")?.Value;
Related