[英]Active Directory Security Group and Role in asp.net
I have a security group in AD. 我在AD中有一个安全组。 I want to assign Administrator role to members of that security group.
我想将管理员角色分配给该安全组的成员。 What is the best way to do it?
最好的方法是什么?
Try using this: 尝试使用此:
if (User.IsInRole("AdminSecurityGroup"))
{
//Give user admin authority
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.