Is there any way to get the explicit role that a user belongs to in my controller? This assumes using ASP.NET Membership and Role Providers. \"IsInRole\" doesn\'t work - I n
Simplemembership in MVC4:
Getting the User's role-
var role = System.Web.Security.Roles.GetRolesForUser().Single();
To check if the user belongs to a certain role-
if (User.IsInRole("External"))