如何确定谁有权修改 Active Directory 组
我正在努力创建一个管理界面,允许管理 Active Directory 中组中的用户。
我只想在活动用户实际上有权添加或删除这些组中的其他用户时才向该用户显示组,但目前我不确定如何确定哪些人可以修改组,或者是否可以当前人员有权修改特定组。
我想应用程序可以在用户尝试后发现并且我们收到访问错误,但我不喜欢使用错误捕获作为确定某些功能是否可用的方法,并且我不想用列表来诱惑用户他们无法控制的群体。
如果可能,请使用 System.DirectoryServices.AccountManagement 提供针对 vb.net 3.5 的答案,因为这是我当前工作的环境。如果需要的话我可以从 C# 翻译。
I'm working on creating an administrative interface that allows managing users in groups in Active Directory.
I would like to only show groups to the active user if the user actually has the rights to add or remove other users within those groups, but I'm not sure at this point, how to determine which people can modify the groups, or whether the current person has access to modify a specific group.
I suppose the application can find out after the user tries and we get an access error, but I don't like to use error trapping as a way of determining if some feature is available and I would prefer not to tempt the users with a list of groups they can't control.
If possible, please supply an answer that targets vb.net 3.5 using System.DirectoryServices.AccountManagement as that is the environment that I am currently working within. I can translate from C# if necessary.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论