I have a web application and I need to use there AD UserGroups. I need to do this in my views and cotrollers:
var User = System.Web.HttpContext.Current.User;
if (User.IsInRole("DOMAIN\group"))
{
Show();
}
I´m using ClaimsBased Identity in application, but I have access to WindowsIndetity too. What I want is add WindowsIdentity claims / groups to ClaimIdentity and after that work with ActiveDirectory userGroups like roles.
It is possible ?
Thanks for help !
