Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 AD 中有一个安全组。我想将管理员角色分配给该安全组的成员。最好的方法是什么?
尝试使用这个:
if (User.IsInRole("AdminSecurityGroup")) { //Give user admin authority }