Prevent delete but allow moving files for a document library

Julien Anid 216 Reputation points
2022-01-05T20:16:33.957+00:00

Hello everyone,

I assigned to a user the edit role permission excluding the delete feature in that role. After that, I noticed that the “Move To” feature disappeared from the ribbon because of excluding the delete feature from the edit role.

I did the above because I thoughts about the below options:

Option 1- If I prevented the delete I thought that they can move the file to a specific library called "Deleted files" where only the admins can perform the delete operation in that library.

Option 2 - Is there any idea/way to have approval upon file deletion and if approved the file will be deleted? But the problem is if the user pushed the delete button on the file it will directly go to the recycle bin that's why I am trying to find a way for a manager to approve before deleting any file.

Can please someone advise what will be the workaround to allow moving files without the delete feature or to have an approval process and upon approval delete the file needed (using Power Automate if it will work)?

Any help is highly appreciated.

Thank you!

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,003 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,626 questions
0 comments No comments
{count} votes

Accepted answer
  1. Echo Du_MSFT 17,201 Reputation points
    2022-01-06T07:20:50.043+00:00

    Hello @Julien Anid ,

    According to my research, it is impossible to allow users to move files but restrict deletion of files for a Document library in SharePoint.

    Here I provide a workaround for you reference:

    1.Navigation to the Document library as a site admin and grant users Edit permission

    162803-d1.jpg

    2.Create the below Microsoft Flow

    162699-d2.jpg

    3.Save and Test this flow

    4.Navigation to this flow details page, click Share button

    162720-d3.jpg

    5.Share with users with Edit permission for a Document library

    162804-d4.jpg

    6.Access the Document library as the user with Edit permission

    7.Select one file and click Automate >> DeleteFlow (my flow name)

    162660-d5.jpg

    8.Click "Run flow" button

    162737-d6.jpg

    9.The site owner will receive an approval email. If the owner selects "Approve", the file will be deleted, otherwise it cannot be deleted

    162738-d7.jpg

    162793-d8.jpg

    Thanks,
    Echo Du

    ========================================

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Julien Anid 216 Reputation points
    2022-01-06T12:17:27.397+00:00

    Hi @Echo Du_MSFT ,

    I really appreciate the time you spent regarding this workaround and for providing detailed screenshots step by step.

    I followed all the mentioned and achieved my requirements.

    Thank you!!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.