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

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

Users can delete the parent folder even when they don't have delete permission on subfolders

Posted By:      Posted Date: September 17, 2010    Points: 0   Category :SharePoint
I'm trying to use a document library to manage project documents. I created a folder for each project, and under the project folder, there are two subfolders with special permissions for confidential documents. I give normal users the Contribute permission of the project folders so they can add/remove new subfolders under the projecct folder. However, with this configuration the normal users can delete the whole project folder in the web interface, even they don't have delete permission for the two subfolders. Is there a way to prevent this? Regards, James Liang

View Complete Post

More Related Resource Links

Programmatically delete a .webpart file from wpcatalogs folder from an IIS website


We are using a third party wsp in our solution which directly adds the web parts into the web application store rather than the web part gallery(References to them are present in IIS site's wpcatalog directory). We want to remove these web part files so that the users will not be able to add these web parts to pages directly. Or any other modification so that users will not be able to add these directly. Is there a way we can do this programmatically?

SSRS 2008 SP1 - Enabling "My Reports" allows users delete reports in folders they should not be able

Issue: Users that have “My Reports” SSRS Role assigned to them can delete reports in other “shared” folders. My understanding was that they will be able to do the tasks specified only  in the “My Reports” workspace not everywhere. I have “My Reports” enabled via SSMS. Users have “My Reports” role assigned to them at the root level. My SSRS Role “My Reports” has only the following tasks assigned: 1.       View Reports 2.       Manage reports 3.       View Folders 4.       Manage Folders To test, I'm using Development version of SQL Server 2008 SP1. Thanks in advance, Martina

Delete bin and obj folder from projects directories

You always have problem to debug when you do latest from source control.You might end up deleting bin/obj folder sometime.Here is nice bat file which delete bin/obj folder(s). 1. copy this on notepad and save it as clean.bat file 2. Keep this file on root directory 3. Double check the directory on "DIR /B /AD /S obj" and "DIR /B /AD /S bin" ---------------------------------------------------------------------------------------------- FOR /F "tokens=*" %%G IN ('DIR /B /AD /S bin') DO RMDIR /S /Q ...(read more)

Delete users from ASPNET DB if it exist

Good day! We have Sharepoint 2010, SQL 2008, FBA. All works well! I try to create windows form with many functions one of which is to create and delete users from aspnet database. I make a code for users creating. Now I try to write a code for users deleting. Here it is: private void Delete_Click(System.Object sender, System.EventArgs e) { string userName = string.Empty; string Status = string.Empty; int cnt = 0; if (MessageBox.Show("You are about to delete " + UsrName.Text + ". Are you sure you want to continue?", "Delete Users", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.No) return; try { //delete the user userName = UsrName.Text; Membership.DeleteUser(userName, true); } catch (Exception ex) { cnt += 1; Status += ex.Message; } if (cnt == 0) { MessageBox.Show("User was deleted successfully. ", "Users Deleted", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("There were errors deleting user: " + Status, "Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } } If I delete existing users all works fine. If I try to delete unexisting users I have the message which is in last statement. How can

How to properly configure permissions so users can view, add, edit, and delete list items, but not w

I am trying to figure out how to properly setup security so that it can be configured at the top-level, and then inherited all the way through. Here is what I would like to do: Each user can view, add, edit, and delete list items - but, users cannot modify or delete web part pages. The only way I know how to do this is set Contribute from the top-down, and then go into each Site Pages library and set Read access. The problem is that I have 100 sites, and I was hoping there was a way I could set security at the top, and inherit downward. Rather than having to go into all 100 Site Pages library and set Read access. Is there a way to do this? Thanks in advance.

how to delete files from folder in webserver


hi i m using fileupload concept and saving the files to a folder download.hw can i check the files names saved in that folder while site is hosted on webserver.is there any way to delete some of files from that folder runtime. 

Delete Parent OU from Active directory using Asp.net (C#)


 I am try to delete Parent OU using the following code.but present of child OU its not delete the Parent OU. i get Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) error.

AD OU stucture:       AA -> BB -> CC

I am try to delete AA OU using this code

DirectoryEntry objDE = new DirectoryEntry(LDAPPath, null, null, AuthenticationTypes.Secure);
DirectoryEntries objDentry = objDE.Children;
string OU = "OU=AA";
DirectoryEntry NewOUEntry = objDentry.Find(OU);          

Please help if any one knows



Delete images from folder physically in vb.net


I am using grid view and on grid delete image click i remove product but i also want to remove image phisically from the folder.

i have deleted logically but i need code to delete from folder ?





Hafiz Awais


how to delete image from particular folder in c#,net


hi everyone

i m uploading the photo using file upload control.

now if i want to delete that photo from photo folder how can i do that?

can anyone help?



How to delete "Users Folders" from the Home...

Hello, all.  I recently had to rebuild my Reports Server.  Luckily I had all reports, data sources saved in a Viz Studio project so I just redeployed.  My question is how do I delete this annoying "Users Folders" link from the Home folder.  Clicking the "Users Folders" link, I see additional folders of the few users I have.  I'd like to delete the Users Folders link altogether from the Home folder.  However when I attempt to delete a folder or multi select and delete all of them, I get an error "The permissions granted to user 'SAWS\rhall' are insufficient for performing this operation. (rsAccessDenied)".  I believe I am an Administrator on this server...or at least I should be.  Can anyone help?

Thanks in advance folks,
Roz <

Delete orphan users mysites


1) How to Delete orphan user mysites. we are importing only active users to moss 2007 users & profiles. Then sharepoint mysite delete timer job deletes those inactive users from profile list but it doesnt delete the mysites.


Delete Child Record And Later Delete The Parent Record


need help in Sql script

how to Delete Child Record And Later Delete The Parent Record if it has no child

Trigger might be the answer but i don t know how!

if someone has another way tell me

SharePoint Moss2007 - Permissions for Issue Tracker. Want users to Edit but not Delete


I have a issue tracker list setup and I've got custom permission group which is basically the same as the standard Contribute group except with Delete removed. However using this custom group users don't get the Edit button on the List Items to then be able to go in and change. When I add the delete permission to the group they can then go in - but can then obviously delete which I don't want them to be able to do.

Anyone got a solution for this?


Delete Comments from other users


Can I do that using the standard sharepoint interface? How an admin can moderate the comments using the standard sharepoint interface/?



www.sharepoint2010blogger.com Follow me on Twitter <<<

Users can delete SharePoint 2010 Discussion posts from Outlook 2010


I have setup Discussions on SharePoint 2010 and users have linked these discussions to Outlook 2010.  Permissions on the discussion board are setup such that every user is a contributor (i.e. they can post messages).  On SharePoint, the permissions seem to work properly; that is users can post messages and delete/modify their own messages.  However, within Outlook, users can delete anyone's message. We just had an incident where a user deleted ALL messages in his Outlook SharePoint list and it deleted all messages from the SharePoint site too.

Is there a permission setting that I don't have set properly?

Thanks for your help.

users my site delete



 we have SharePoint 2007 portal farm. total number of AD users are more then 30000.  if we create new user in AD, portal will create new Exchange mailbox and SharePoint permission. 

if user first time login to the portal user profile redirect to user my site (mysite.domain name). after that public portal login. now my question is in my AD i have some disable users accounts. how can i delete those disable users mysite profile.

i know in exchange i can delete the mailbox after that i can delete the user from AD, is SharePoint have  smiler option? 


i want to do a clean. how to do that. 





Adding Dynamic Rows in ASP.NET GridView Control with TextBoxes and with Delete functionality

In my previous examples, I have demonstrated on how to add dynamic rows in GridView control with TextBoxes and how to save the values into the database. Now, seems that most of the developers are asking if how to add a delete functionality with it. So in this example, I'm going to show on how to delete a certain row in the dynamic GridView with TextBoxes.
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