Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to get permissions of a document in sharepoint 2007 using web service and export them to an excel file.
The result should be something like the following content:
document -> click "edit permission" -> sharepoint list all users have permission to current document.
My quest is how can I get this user list either by web service or sharepoint api ?

Thanks in advance !

share|improve this question
add comment

2 Answers 2

The out-of-the-box web services in SharePoint 2007 do not allow for permissions retrieval of anything other than a site or a list.

For individual permissions, you will need to create your own solution. That being said, you can find an example of a web service (for deployment to a SharePoint 2007 farm) that allows for retrieval of individual item permissions here.

share|improve this answer
add comment

There is a Permissions Web Service (http://blahsite/_vti_bin/Permissions.asmx) that is provided for working with permissions. It provides methods for working with the permissions for a site or list only. It is very much surprising that it does not support managing permissions at item level with Web Services.

So, at this time, an OOTB web service to apply fine grained permissions does not exist. The best that can be done, is to the site or list.

http://msdn.microsoft.com/en-us/library/websvcpermissions.permissions.addpermission.aspx

You should be able to create a web service to do it though, here is an example:

http://www.codefornuts.com/2009/05/item-level-security-with-sharepoint-web.html

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.