views:

433

answers:

1

I have a security group in AD. I want to assign Administrator role to members of that security group. What is the best way to do it?

+1  A: 

Try using this:

if (User.IsInRole("AdminSecurityGroup"))
{
    //Give user admin authority
}
Noah