Home

Restrict Delete option to specific documents in Sharepoint online document library

%3CLINGO-SUB%20id%3D%22lingo-sub-1339594%22%20slang%3D%22en-US%22%3ERestrict%20Delete%20option%20to%20specific%20documents%20in%20Sharepoint%20online%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1339594%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20doing%20some%20integration%20with%20SharePoint%20online%20and%20upload%20documents%20from%20DocuSign.%20We%20have%20a%20requirement%20to%20restrict%20the%20Delete%20option%20specifically%20for%20those%20integration%20documents%20not%20for%20the%20other%20documents%20already%20exist%20in%20the%20document%20library.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20even%20thought%20about%20Power%20Automate%20and%20Remote%20Event%20Receivers%20but%20I'm%20not%20sure.%3C%2FP%3E%3CP%3EIs%20it%20even%20possible%20to%20prevent%20deleting%20specific%20documents%20using%20Permissions%20or%20is%20there%20any%20other%20way%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1339594%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPermissions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1339987%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20Delete%20option%20to%20specific%20documents%20in%20Sharepoint%20online%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1339987%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F455146%22%20target%3D%22_blank%22%3E%40dotem%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20restrict%20deleting%20documents%20by%20turning%20off%20editing%20of%20documents.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20depends%20what%20you%20mean%20by%20delete%2C%20just%20by%20the%20end%20user%3F%20Retention%20labels%20once%20applied%20will%20stop%20a%20user%20deleting%20a%20file%20but%20they%20can%20still%20remove%20the%20retention%20label.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20could%20move%20any%20finalised%20documents%20using%20power%20automate%20to%20a%20second%20document%20library%20where%20the%20users%20only%20had%20read%20permissions.%20Or%20power%20automate%20could%20identify%20it%20as%20a%20docusign%20document%20and%20remove%20permissions%20to%20the%20users.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENeither%20solution%20ideal%20and%20may%20not%20work%20for%20what%20you%20want%20to%20do.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Regular Visitor

Hi,

 

We are doing some integration with SharePoint online and upload documents from DocuSign. We have a requirement to restrict the Delete option specifically for those integration documents not for the other documents already exist in the document library. 

I even thought about Power Automate and Remote Event Receivers but I'm not sure.

Is it even possible to prevent deleting specific documents using Permissions or is there any other way?

1 Reply
Highlighted

Hi @dotem ,

 

You can restrict deleting documents by turning off editing of documents.

 

It depends what you mean by delete, just by the end user? Retention labels once applied will stop a user deleting a file but they can still remove the retention label.

 

You could move any finalised documents using power automate to a second document library where the users only had read permissions. Or power automate could identify it as a docusign document and remove permissions to the users.

 

Neither solution ideal and may not work for what you want to do.