0

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

4
  • 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? Commented Jul 15, 2023 at 11:50
  • What is the version of your SharePoint? Server/on-premise or Online? Commented Jul 16, 2023 at 14:03
  • @jleture Online Commented 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 it Commented Jul 17, 2023 at 15:13

2 Answers 2

0

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.

enter image description here

enter image description here

the images are in spanish, i'm costarican...:)

Sign up to request clarification or add additional context in comments.

Comments

0

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.

  1. Open the list settings of your Events list
  2. Click on Advanced settings
  3. Item-level Permissions: check "Create items and edit that were created by the user"

item level permission

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.

unauthorized page

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.