Click here to Skip to main content
15,898,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

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.
Posted

1 solution

Have you tried the RoleAssignments property?
 
Share this answer
 
Comments
leopard447 10-Apr-12 8:30am    
Yes i have tried RoleAssignment property but it seems to only assign the permission to user but i want to read All user or user group having permission to specific DocumentItem Object.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900