获取共享点文档项目的所有用户权限信息

问题描述:

大家好,
我必须使用C#获取与sharepoint DocumentItem关联的sid值.我可以拿到吗.
实际上我想让所有有权访问特定DocumentItem的用户.
我知道有办法

Hi All,
I have to get the sid value associated to sharepoint DocumentItem using C#. Can i get that.
Actually i want to get all the users which have access to specific DocumentItem.
I know there is a method

AllRolesForCurrentUser


但它只显示当前的用户信息,但是我想提取所有对DocumentItem有权限的用户名.有什么办法可以在C#中做到这一点.还有另一个属性


but it only display current user information, But i want to extract all user names who have permission to DocumentItem. Is there any way to do that in C#. There is another Property

ReusableAcl

,但它似乎未返回任何有价值的数据.

but it dont seems to return any valuable data.

您是否尝试过RoleAssignments属性?
Have you tried the RoleAssignments property?