0

I have a list on SP online which has a bunch of members. Currently, the members can add, edit and delete rows in this list.

However, the current purpose is to restrict users to deleting only the rows enetered by them.

Please note that the rows have username column that contains the memeber's username associated with their Microsoft account. So, I was thinking maybe this column can be used to create such access restriction.

How can I do this?

9
  • 1
    User should be able to delete the items added by other users? Commented Oct 19, 2022 at 2:07
  • @GaneshSanap, no user should be able to delete their own items only
    – Ed_Gravy
    Commented Oct 19, 2022 at 2:56
  • 1
    But can they delete the items for others? Commented Oct 19, 2022 at 4:49
  • 1
    If no group members should delete any list items, you can try creating custom permission level without delete permissions and use it instead of "Contribute" or "Edit" permissions as mentioned below by @user79408. Commented Oct 19, 2022 at 8:26
  • 1
    I have added an answer below. Commented Oct 19, 2022 at 13:09

2 Answers 2

1

Follow below approach for your requirements:

  1. Remove Delete permissions on list for all users
  • Create a new permissions level "Contribute without Delete" by copying the "Contribute" permission level and removing "Delete Items" and "Delete Versions" options from the List Permissions.
  • Follow this article: How to Set Permissions to add but not delete in SharePoint?
  • Use this permission level to grant permissions to group members on the SharePoint list instead of default permission levels
  1. Allow person in "username" column to delete their items:
  • Create a power automate flow on item creation (and/or item update - as per you requirements).
  • Break permissions inheritance on list item
  • Grant Contribute or Edit permissions (as per your requirements) to user email mentioned in "username" column
  • Also grant permissions to site owners/admins for safer side

Follow below links for breaking permissions:

  1. Power Automate - Break Inheritance And Set List Item-Level Permissions In SharePoint Online
  2. Stop sharing an item or a file

Follow below links for granting permissions:

  1. Grant access to an item or a folder
  2. Setting SharePoint Permissions with Power Automate
2
  • Thank you so much, for step Create a power automate flow on item creation (and/or item update - as per you requirements). Can you please expand on this or maybe share a link which shows this process?
    – Ed_Gravy
    Commented Oct 19, 2022 at 13:22
  • 1
    If the person in "username" column will be set only when item is created (Or if you are using SharePoint default "Created By" column), you can use when an item is created. Check the trigger used in this article for example: 365hq.net/… Commented Oct 19, 2022 at 13:28
2

To prevent users deleting items, you would probably need to create a custom permission level that doesn't have the delete privilege and apply that to the members of the list instead of the current Edit permission level. I'd recommend copying the Contribute permission level and unselecting Delete Items from the List Permissions.

You'd then need to create a Power Automate flow that grants Edit access to the individual list item for the Created By user.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.