Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

When a group member is added or removed

(0) ShareShare
ReportReport
Posted on by

I have created a flow to monitor certain a group. The flow works fine, I get the email that the user was added/removed from the group.

 

But now I am trying to add what administrator added/removed the user from the group. 

 

I've read that I need to use the Get user profile (V2), adding that in gives me the user that was added/removed, not the administrator that added/removed.

 

jharris3_0-1681239618443.png

in the email:

I get: USER was added to GROUP by USER

 

I want: USER was added to GROUP by ADMINISTRATOR

  • Expiscornovus Profile Picture
    31,635 Most Valuable Professional on at
    Re: When a group member is added or removed

    Hi @jharris3,

     

    Unfortunately, the outputs of that specific trigger action does not contain that (added or removed by user) information.

     

    However a workaround could be to interact with Microsoft Purview for this. That product has audit log events for this, like the Added member to group. That activity should show who has added the member to the group: https://learn.microsoft.com/en-us/microsoft-365/compliance/audit-log-activities?source=recommendations&view=o365-worldwide#azure-ad-group-administration-activities

     

    There are example on the internet how to integrate with those logs within Power Automate. For example Leon Armston has a three-part blog series about this:

    https://www.leonarmston.com/2020/07/office-365-management-activity-api-with-power-automate-part-three/

     

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,596 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow