用于检索有权访问文件的所有用户组和用户的 SharePoint API
我们正在寻找一个 SharePoint API,如果我们知道该文档的 URL,它可以提供有权访问 SharePoint 中的文件的所有用户/组。
我查看了 MSDN 文档的 SPItem 类 - http://msdn.microsoft.com/ en-us/library/ms443717.aspx 并且找不到任何提供此信息的方法。
欣赏任何想法。
谢谢。
We are looking for a SharePoint API that provides all the users/groups which have access to a file in SharePoint if we know the URL of that document.
I looked in SPItem Class of MSDN documentation - http://msdn.microsoft.com/en-us/library/ms443717.aspx and could not find any method that provides this information.
Appreciate any thoughts.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是针对 SharePoint 2007 还是 2010
对于 2007,您可以使用
SharePoint 中任何安全的对象都将使用此接口。然后,您可以查看该对象是否具有唯一的安全性或从父对象继承。
然后,您可以继续沿着父级返回,直到找到唯一的安全对象(例如 SPSite)
要查看向 SPSecurableObject 应用了哪些权限,请查看 RoleAssignments 属性和 SPRoleAssignment
Is this for SharePoint 2007 or 2010
For 2007 you can use
Any object in SharePoint that is securable will use this interface. You can then see if the object has unique security or inherits from a parent object.
You could then keep going back along the parents untill you find the unique secure object (SPSite for example)
To see what permissions are applied to a SPSecurableObject look at the RoleAssignments property and the SPRoleAssignment