Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

SharePoint 2010 REST API to get entry permissions

$
0
0
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 (I have looked at http://msdn.microsoft.com/en-us/library/ff798339.aspx, very basic).  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.  Would I be better served to switch to the SOAP Web Services for SharePoint 2010?

Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>