SharePoint Online: Restricting SharePoint Online users from deleting apps on a site

Ernests Cers 0 Reputation points


Is there a way to limit users regardless of their permission level to not be able to delete apps from site contents?

A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,181 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,559 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Haoyan Xue_MSFT 17,401 Reputation points Microsoft Vendor

    Hi @Ernests Cers ,

    If you want to realize that users are not allowed to delete applications from the site contents regardless of the level of permissions, You can only create a custom permission level for each permission that does not include the “Delete items” and “Delete versions” permissions from it and assign it to those users.

    Note: Unfortunately, if you remove the “Delete items” permission from a custom permission level, it will also remove the ability to rename files. This is by design in SharePoint. But other than that there is no other solution to disable deletion.

    Here's how you can do this:

    1. Click on Site settings > Site permissions.
    2. Click on Permission Levels
    3. Example: Let’s start with the “Contribute” role. Click on the role name “Contribute” to go to the page that defines all the individual permissions of that role.
    4. Scroll all the way down to the bottom and click on the button “Copy permission level”. Give a name for the new permission level and check the boxes for the permissions you want to include. Make sure to uncheck “Delete items” and “Delete versions” option.
    5. Click on Create to create the new permission level.

    User's image

    Once you have created the custom permission level, you can assign it to specific users or groups to restrict them from deleting apps.

    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.