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
@ekarim2020 You gave me the solution to the problem. the original requirement was that the event creator, his or her direct superior, or her subordinates could edit or delete the event created by that person. Your idea served as a base and I was able to create the flow and put it to production using the "get manager" and "get subordinates" functions. thanks a lot
Hi @jdanielhdezr ,
If I understand correctly:
You 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. You want to limit item deletion exclusively to the user who originally created it. And "organizer" being the person who scheduled or created the calendar event. This "organizer" would be a SharePoint column that you created for this list, as there is no built-in organizer column (i.e. Creator and Organizer are different people, so are different SharePoint columns).
Here are two suggestions you can try:
(1) Change the Advanced settings so that only the Creator can edit the calendar items they have created, everyone else can view (i.e. Read):
(2) Grant Edit access to the Calendar item to the organizer when a new item is created
(However, if the organizer is later changed, the flow will need to use a different trigger (when an item is created or modified) and check if the organizer was changed. But this is more complex and a bit more work).
Ellis
____________________________________
If I have answered your question, please mark the post as ☑️ Solved.
If you like my response, please give it a Thumbs Up.
My Blog Site
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.