cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Prodigy
Post Prodigy

How to identify if user is added OR removed from the Office 365 group trigger?

Hello,

 

I am using following trigger of Office 365 Group:

 

When a group member is added or removed
 
How can I know if member is added or removed in the trigger?
 
Thanks,
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

You can Declare variables and set them like below... If the user is removed, @Removed will show you that its deleted otherwise it will be empty and you can treat it as added. User ID will tell you id of the user.

Then you can query User Profile using the user ID and take action.

 

Please Mark this as Answer if it resolves your issue.

 

PrasadAthalye_1-1598903450152.png

 

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

1 REPLY 1
Super User
Super User

You can Declare variables and set them like below... If the user is removed, @Removed will show you that its deleted otherwise it will be empty and you can treat it as added. User ID will tell you id of the user.

Then you can query User Profile using the user ID and take action.

 

Please Mark this as Answer if it resolves your issue.

 

PrasadAthalye_1-1598903450152.png

 

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (24,869)