Forum Discussion
ashmelburnian
Jul 05, 2019Brass Contributor
Prevent deletion of SharePoint files
We had a situation where an end user accidentally deleted thousands for files under a SharePoint document library via OneDrive. The document library itself is accessible to everyone within the co...
- Jul 05, 2019You need to create a new permission role and assign that to users. Go to the SharePoint site permissions, it's under advanced on the home page. Add a role and select just the permissions the user needs and not delete. Now go to library and change the user group permissions to that new role.
Alan Marshall
Jul 05, 2019Steel Contributor
You need to create a new permission role and assign that to users. Go to the SharePoint site permissions, it's under advanced on the home page. Add a role and select just the permissions the user needs and not delete. Now go to library and change the user group permissions to that new role.
Sengyo
Aug 10, 2019Copper Contributor
Great tip. Noticed one drawback though. The ability to rename files is linked to the Delete permission. When you remove the Delete permission, the user can't rename files anymore either.
- Alan MarshallAug 11, 2019Steel ContributorThat should only require edit rights as it's a property. Maybe someone at Microsoft can confirm this.
- SengyoAug 11, 2019Copper Contributor
Sure, with the Edit right, you can edit the file or modify its metadata no problem. However, by renaming it, it seems the system must delete one version to re-create the new version with the new name. This must be done with the Delete right.
There has been some discussion on that:
Forced me to do a few acrobatics in my application cause I wanted to prevent users from deleting their files (and those contributed by others) but also allow them to rename the file.
R.