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 / How to set up a flow t...
Power Automate
Unanswered

How to set up a flow that adds and removes members from O365 groups?

(0) ShareShare
ReportReport
Posted on by 1

Hi there,

 

I am trying to set up a flow but I'm running into trouble because there's only one option that says "When a group member is added or removed". Is there a way to separate the two where I can just say "When a group member is added" or "When a group member is removed" ?

 

If that's not a thing, how can I separate the two in Power Automate? We're trying to check if a member has been removed from a distribution list to then remove him/her from more groups. Then we'd like to do another check on that same distribution list/group to see if a member has been added and add that member to more groups.

 

Thanks for the help!

John

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,474 Most Valuable Professional on at

    Hi @JohnMG,


    You could use a trigger condition and check if the @removed property is empty. If this is the case we are talking about the adding of a member. 

     

    @empty(triggerOutputs()?['body/@removed'])

     

    For removed scenario create a second flow and use this trigger condition:

    @not(empty(triggerOutputs()?['body/@removed']))

     

    empty_removed.png

     

     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 273 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 135 Most Valuable Professional

Last 30 days Overall leaderboard