I created a role based menu for which I followed this tutorial. Some where down that page you\'ll see this line of code:
String[] roles = Roles.GetRolesForU
Here's an extension method of the above solution.
public static List Roles(this ClaimsIdentity identity) { return identity.Claims .Where(c => c.Type == ClaimTypes.Role) .Select(c => c.Value) .ToList(); }