How can I prevent users from deleting sharepoint calendar list item, if the logged user is not the organizer or creator of the item? i need to prevent deletion items only if the logged user is the item creator
-
Hm that sounds confusing: the first sentence contradicts with the second one. Do you want the creator to be able to delete the items he created, or the opposite?Nikolay– Nikolay2023-07-15 11:50:43 +00:00Commented Jul 15, 2023 at 11:50
-
What is the version of your SharePoint? Server/on-premise or Online?jleture– jleture2023-07-16 14:03:21 +00:00Commented Jul 16, 2023 at 14:03
-
@jleture OnlineJosé Hdez Rojas– José Hdez Rojas2023-07-17 15:11:52 +00:00Commented Jul 17, 2023 at 15:11
-
@Nikolay i want to prevent users from deleting a SharePoint calendar list item, specifically when the logged-in user is not the item's organizer or creator. i want to limit item deletion exclusively to the user who originally created itJosé Hdez Rojas– José Hdez Rojas2023-07-17 15:13:04 +00:00Commented Jul 17, 2023 at 15:13
2 Answers
first, i created a new permission where people can only create items and view them, but cannot edit or delete. then i made a flow taht is triggered when an item is created.
then, i assigned edit and delete permissions in the new item for the creator, their subordinates, and their manager using the "get manager" and "get subordinates" functions.
the images are in spanish, i'm costarican...:)
Comments
With SharePoint Server, it will be easy to develop and deploy an Event Receiver with the method ItemDeleting to prevent non-author deletion. With SharePoint Online, there is also something called Remote Event Receiver but it requires to host custom code on Azure. https://abdulazizfarooqi.wordpress.com/2016/12/08/sharepoint-online-remote-event-receiver-item-deleting-using-provider-hosted-app/
For your use case, there is something easier: item-level permission. Do you think about it? However, it will prevent edit and delete, and not only delete.
- Open the list settings of your Events list
- Click on Advanced settings
- Item-level Permissions: check "Create items and edit that were created by the user"
Now, anyone with contribute role can create event but only the original author can edit or delete this event. Please note that non-author can see the Edit and Delete button but when pressing the button an unauthorized page will be displayed.



