web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Remove user from Share...
Power Automate
Answered

Remove user from SharePoint group when item is deleted from list

(0) ShareShare
ReportReport
Posted on by 12

Hi everyone,

following situation:
I have a SharePoint List with everyone involved in the project (e.g. responsible topic, department, etc.) Everybody in this list needs to have access to SharePoint libraries where the access is handled with SharePoint Groups. What I figured out so far is how to add somebody to a group when I add someone to my project participant list (create item) using HTTP request. Now I want to remove somebody from the group when I delete this person from my project participant list. I figured out the HTTP request, that’s not my problem. My problem is that I can’t retrieve the data from the deleted element I need (LoginName). With the trigger when item is created or edited I can get the data “Column name Claims”. Unfortunately I can’t get this from the Trigger when item is deleted.

Can somebody help with that?

Thanks in advance

Here a few screenshots:

When person is removed from list(my problem):

Sid2804_1-1637054734475.png

 

When person is added to List(working perfectly fine):

Sid2804_0-1637054525207.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    AnthonyAmador Profile Picture
    2,553 Moderator on at

    Hi @Sid2804 

     

    The "When an item is deleted" trigger does not allow you to retrieve the column values of the item, if you want this feature to be added in future versions, submit your idea here. 

    Power Automate Ideas - Power Platform Community (microsoft.com)

     

    A workaround for this could be add a column called "Delete", this column can be Yes/No and the first value always no, then if you would like to delete the item, you can change it to yes, get the columns values first and then remove it, you can use the "when an item is modified" trigger and a trigger condition set only for that column. 

     

    Hope this helps. 

    Kind regards. 

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • Verified answer
    Sid2804 Profile Picture
    12 on at

    Thanks @AnthonyAmador,

    I did find another workaround.

    In my List I do not use the "Title" column but this is the only column also available in the deleted Item. In my flow to add a user I already update the created item with data from the person added (e.g. email and department). In the same step I update the "Title" column with the data needed to remove the user from the group.

    It's working perfectly fine 🙂

  • AnthonyAmador Profile Picture
    2,553 Moderator on at

    Glad to know you found a way. 

    Please mark the thread as solved to help other users find it more quickly. 

     

    Cheers. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard