.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Web services do not respect folder permissions?

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :SharePoint

I seem to have found a problem with web services where folder level permissions are not respected when adding a list item.  This problem does not occur when using SharePoint through the browser.  My scenario is as follows. 

I have a list with two folders.  I want to give all users in Group 1 and Group 2 read access to all items in the list, but I want only users in Group 1 to have write access (Contribute) to Folder 1 and only users in Group 2 to have write access to Folder 2.  I have granted permissions as follows:

List (Group 1 - Read, Group 2 - Read)

  • Folder 1 (Broken Inheritance: Group 1 - Contribute, Group 2 - Read)
  • Folder 2 (Broken Inheritance: Group 1 - Read, Group 2 - Contribute)

With this setup, when using web services, NONE of the users are able to write to either folder.  Alternatively:

List (Group 1 - Contribute, Group 2 - Contribute)

  • Folder 1 (Broken Inheritance: Group 1 - Contribute, Group 2 - Read)
  • Folder 2 (Broken Inheritance: Group 1 - Read, Group 2 - Contribute)

With this setup, ALL of the users are able to add and item to either folder.  Interestingly, the groups set to Read at the folder level cannot update the items that they created, so that part is working, but the Add permission is not respected.

Overall, the web servi

View Complete Post

More Related Resource Links

Access denied to folder in ASP.NET project either though I have granted all users full permissions !



i have made a very simple file upload app, that i want users to be able to upload images to a folder on my server, well localhost for the time being Stick out tongue

here is the simple upload code...

        protected void ButtonRegisterDetails_Click(object sender, EventArgs e) 
            // display properties of the uploaded file 

Permissions issue for custom web service in the _vti_bin folder.

Hello, I have created a custom ASMX webservice that returns in JSON format so that I can call the data from JQuery on SharePoint page content.  I placed it in the ISAPI (_vti_bin) folder and it works just fine when I go directly to the web service and call it the way JQuery calls it: /_vti_bin/ServiceabilityCheck.asmx/GetSystemIDByZIPCode?ipaddress= Which returns: <string>{"SystemID":"5"}</string> When I try to call it from the SharePoint site with JQuery, it errors out and gives an unspecified error.  Fiddler shows {"Message":"Authentication failed.","StackTrace":null,"ExceptionType":"System.InvalidOperationException"} as the response from the web service call. When I have the webservice on an IIS web app outside of SharePoint, it works fine.  I have anonymous access enabled on the SharePoint site, why would it give me this error?John Chapman | Blog: http://www.johnchapman.name

Copy sharepoint 2007 folder (with sub folders) with all the security permissions

I am looking to copy a common sharepoint folder(sub folders) in 2007 with all the security permissions intact, to a different location in the same site, Does anyone know how to do this?

Minimum Permissions Needed To See Cdc tables In System Tables Folder

What are the minimum permissions needed for a user to see the cdc tables in the System Tables folder in SQL Management Studio?DJ Baby Anne's Biggest Fan................

Programmatically(WSS Web Services) Inheriting Parent Site Permissions for Workspaces

I'm able to create meeting work spaces in Sharepoint 2007 using the WSS web services. This issue that I'm running into is that the default is not inheriting permissions from the parent site. I'm looking for a way to configure this option for the work space programmatically through the use of the WSS web services. I've tried changing this in the template that I'm using to create the workspace, but this does not seem to effect the end results.Regards,Timothy H

Copy sharepoint 2007 folder (with sub folders) with all the security permissions

I am looking to copy a common sharepoint folder(sub folders) in 2007 with all the security permissions intact, to a different location in the same site, Does anyone know how to do this?

New to Sharepoint companyweb and deleted all folder permissions by mistake

Hello.  I am just delving into the world of Sharepoint and testing to see if it will help our company meet it's needs for accessing files remotely as well as giving us collaberation abilities we currently don't have.  We recently purchased a new Windows 2008 Small Business Server which includes Sharepoint 3.0 and I've been messing around with the companyweb page.  My current goal is to emulate how we are using network drives.  There is a drive for each department and then a shared drive where common files for eveyrone are stored.  Rights are maintained using security groups. In the companyweb, inside the Document's section I created a new library named "Department Files" then within that created folders for Accounting, Customer Service, HR etc.  Being completely new to Sharepoint I was editing the permissions to the Accounting folder but forgot to add the domain administrator before deleting the existing rights.  Now the folder is no longer visible and I can't figure out how to edit the rights to it. The permissions that were removed were: CompanyWeb Members, CompanyWeb Owners, and CompanyWeb Visitors. Where can I go to see this hidden directory and change/restore the permissions?  Since this is all testing stuff I can also delete it and start again.  There isn't any info that I need to worry about retaining at thi

Alternative solution to folder level permissions

I have a document library with multiple levels of folders that group sets of documents. Each folder has unique permissions setup. Ran into issue with URL length limitation because of multiple levels. I am looking at an alternative solution using meta data columns and views to categorize data. Everything is fine except I am not sure how to implement security akin to permissions on folder. How would I implement security based on meta data columns ? One soution that I can think of is creating workflows using SPD. Are there any other solutions for this ?

Create report that lists every user with permissions for each folder

I would like to have a report that will list each user with it's roles for every folder. We have a very large RS database with a lot of folders, we need some better way to keep track of permissions. I created a report that utilizes "GetPolicies" from http://localhost/reportserver/ReportService2005.asmx but I have to feed a folder name to get list of users. I can also (by using subreport) list all folders with users. However, I am not able to produce a report where I have it broken by user. any idea?

set or remove permissions of the folder


hi forum

Is it possible to set or remove permissions(read, write,delete)  of any Existing folder using c#. if yes then how we can do ???


thanking you in advance

SMTP Service not found in services folder


I am having a bit of a challenge.  I have Sharepoint 2010 and picked SMTP in the roles option.  Then I installed IIS 6.0 manager.  It installed correctly.  I was then going through and creating the SMTP instructions that I found on technet.  The bottom line is when I goto services to make sure it was turned on automatically (as technet directed me to do) I could not find the SMTP service.


Does anyone know why this is?  I had uninstalled reinstalled SMTP but it still does not show up.


Glen Harouff

Mentor Public Schools

Folder and document specific permissions

My problem is that when I grant a user Read/Contribute permission to a document which is located in a folder in a library where I have not granted access to the user before. When the user is granted a Read/Contribute permission to the document the system creates a restricted permission to the library and to the folder where the document exists. But the problem is that the user can't access the file throught browser or Sharepoint Workspace. User can view the library but do not see the folder where the document is and in SharePoint Workspace the file is visible when syncing but the path to the file is wrong. Allthough user can find and access the file using a fileID.

Unable to open MSDB Folder Under integration services in SSMS. Urgent!!



I uanble to open MSDB folder in under integration services in SSMS. Please help me.

TITLE: Microsoft SQL Server Management Studio

Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476


Client unable to establish connection
Encryption not supported on SQL Server. (Microsoft SQL Native Client)



Reporting Services Forms Authentication and group permissions


Hello all,

I have spent some time getting Forms Authentication working with 2008 (R2) I have one final problem left that is causing intense frustration...

The working bits:

a) Built and tested the required extension - thanks to a combination of old Microsoft example supplemented by the one from chapter 19 of Teo Lachev's book, supplemented by Brian Lawson's book.

b) used existing user/group structures in the db to implement role level permissions

c) Can now grant rights to usernames and the usernames validated against our db, they can log in fine and run reports.

d) Nice customised login screens that login across the application and Reporting Services with a single login - which was the primary aim after all!

e) can grant rights to folders at group level and granting/revoking those rights adds or removes the folders in ReportManager - all looking wonderful

The last hurdle:

If I grant permissions to a specific username (we use email address as the username) then that user can log in to ReportManager fine and see what they should see, so it seems like the bulk of the authentication and authorisation extension logic is OK.

If I grant the exact same permission to a role, and make a login a member of that role (removing the specific username permission) then they

Folder permissions in Sharepoint library corrupt


The permissions of a Folder in my Sharepoint 2010 library have become corrupt

The permissions cannot be edited

When "manage permissions" is selected for the folder the following error occurs


Cannot complete this action.

Please try again.


Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: 761c6efa-d7f9-4d34-ac2b-e0bbb609f82c

Date and Time: 10/8/2010 12:20:14 AM

The folder cannot be deleted

When a attempt is made to delete the folder the following error occurs

Even when using the site administrator account


Error: Access Denied

Current User

Getting document permissions via web services



I'd like to get the permissions associated with a document, given the document's URL.  I found a note about getting document metadata via the Copy.asmx service, but now wondering how I can get the permissions, since they didn't appear in the metadata.



Search Results from File Shares - Respect Permissions?????


I'm curious: If I have SP 2010 Enterprise and I've set it up to crawl and return search results from documents on a file share, will it respect the access permissions that the logged-in user doing the searching has?

I know I have to allow read-only access for the content manager account within SP, but I did not know if it would check access permissions of the user account when returning results.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend