SOLVED

Restrict users from Deletion

%3CLINGO-SUB%20id%3D%22lingo-sub-2072927%22%20slang%3D%22en-US%22%3ERestrict%20users%20from%20Deletion%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2072927%22%20slang%3D%22en-US%22%3EI%20have%20a%20SharePoint%20file%20library.%20There%20are%20couple%20of%20flows%20that%20triggers%20when%20users%20add%20file%20to%20this%20library.%3CBR%20%2F%3E%3CBR%20%2F%3ERight%20now%20users%20can%20delete%20file%20from%20this%20library.%20How%20can%20I%20restrict%20users%20from%20deleting%3F%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2072927%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2073007%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20users%20from%20Deletion%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2073007%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F712688%22%20target%3D%22_blank%22%3E%40cad-one%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20no%20SharePoint%20default%20permission%20level%20which%20allows%20add%2Fedit%20but%20not%20delete%20existing%20files.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EWorkaround%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CP%3EYou%20need%20to%20create%20a%20custom%20%3CSTRONG%3EPermission%20level%3C%2FSTRONG%3E%20in%20SharePoint.%20This%20will%20be%20a%20copy%20of%20your%20existing%20permission%20level%20minus%20Delete%20Items%20permission.%20Follow%20below%20steps%20to%20achieve%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3E%3CSPAN%3EClick%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ESite%20settings%20%26gt%3B%20(Go%20to%20top%20level%20site%20settings)%20%26gt%3B%20Users%20and%20Permissions%20%26gt%3B%20Site%20permission%3C%2FSTRONG%3E%3CSPAN%3E%3CSTRONG%3Es%3C%2FSTRONG%3E.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EClick%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EPermission%20Level%3C%2FSTRONG%3E%3CSPAN%3E%2C%20and%20we%20can%20customize%20a%20new%20permission%20level%20based%20on%20the%20existing%20ones.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EOpen%20the%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EEdit%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3Epermission%20level%2C%20and%20click%20%3CSTRONG%3EC%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3Eopy%20Permission%20Level%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3Bon%20the%20bottom.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EGive%20the%20name%20for%20the%20new%20permission%20level%2C%20and%20uncheck%20the%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EDelete%20Items%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3Boptions.%20You%20can%20also%20remove%20other%20permissions%20that%20are%20unnecessary%2C%20such%20as%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EDelete%20Versions%3C%2FSTRONG%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EClick%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ECreate%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3Eto%20create%20the%20permission%20level.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EUse%20this%20permission%20level%20to%20assign%20the%20permissions%20to%20users%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSTRONG%3EReference%3C%2FSTRONG%3E%3A%26nbsp%3B%3CA%20title%3D%22SharePoint%20online%20site%20permissions%20add%20but%20not%20delete%22%20href%3D%22https%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsoffice%2Fforum%2Fall%2Fsharepoint-online-site-permissions-add-but-not%2F3a9d66d9-5228-4cf3-a3f2-f9df9443ff0f%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ESharePoint%20online%20site%20permissions%20add%20but%20not%20delete%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CHR%20%2F%3E%3CP%3EPlease%20click%20%3CSTRONG%3EMark%20as%20Best%20Response%3C%2FSTRONG%3E%20if%20my%20post%20helped%20you%20to%20solve%20your%20issue.%20This%20will%20help%20others%20to%20find%20the%20correct%20solution%20easily.%20It%20also%20closes%20the%20item.%20If%20the%20post%20was%20useful%20in%20other%20ways%2C%20please%20consider%20giving%20it%20%3CSTRONG%3ELike%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor
I have a SharePoint file library. There are couple of flows that triggers when users add file to this library.

Right now users can delete file from this library. How can I restrict users from deleting?
3 Replies
best response confirmed by Juan Carlos González Martín (MVP)
Solution

@cad-one 

 

There is no SharePoint default permission level which allows add/edit but not delete existing files.

 

Workaround:

You need to create a custom Permission level in SharePoint. This will be a copy of your existing permission level minus Delete Items permission. Follow below steps to achieve this:

 

  1. Click Site settings > (Go to top level site settings) > Users and Permissions > Site permissions.
  2. Click Permission Level, and we can customize a new permission level based on the existing ones.
  3. Open the Edit permission level, and click Copy Permission Level on the bottom.
  4. Give the name for the new permission level, and uncheck the Delete Items options. You can also remove other permissions that are unnecessary, such as Delete Versions.
  5. Click Create to create the permission level.
  6. Use this permission level to assign the permissions to users

ReferenceSharePoint online site permissions add but not delete 


Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

@ganeshsanap I set up a custom permissions site and only check marked the: Edit Items  -  Edit items in lists, edit documents in document libraries, and customize Web Part Pages in document libraries. The delete options are not check marked. This still gives users the option to delete webparts, unfortunately. Is there anything I'm doing wrong or is this just a Microsoft bug?

@JennaB460 This is expected behavior as you are having permissions to edit the pages (items/documents).

Adding/removing web parts on a site page is part of editing pages.


Please consider giving a Like if my post helped you in any way.