asp.net core 3 identinty get user roles from Ihttpcontextaccessor code example
Example: how get the user show mvc controller core 3.1
public string LoggedInUser => User.Identity.Name;
public string LoggedInUser => User.Identity.Name;