Using the SharePoint 2013 REST API, I am able to get file\folder permissions using GetFileByServerRelativeUrl
or GetFolderByServerRelativeUrl
and then expanding RoleAssignments
to get all the information I need about both Members of the RoleAssignments
as well as the BasePermissions
of each.
The SharePoint 2010 REST API seems definitely less developed but is there a way to obtain this information in 2010? Is there a really good source of documentation for the SharePoint 2010 REST API?
What I have found for both 2010 and 2013 seems very basic with 2010 documentation being even more scarce. Through web searches I've discovered single references to very valuable features that weren't documented anywhere I could find in Microsoft documentation (ie. $expand
).
FWIW, I should mention parenthetically that I'm using Java in my successful SharePoint 2013 implementation work. I see a lot of C# and CSOM library examples when doing web searches but, for me, the biggest advantage of a RESTful service is that I can choose whatever language I want. Of course that means I'm also solely reliant on what's in the REST API which seems like it could be a disadvantage, especially in my SharePoint 2010 work.
So general guidance is also appreciated.