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

Community site session details

Session Id : laZy0O5K4YE0AFgyUud1u7
Power Automate - Building Flows
Answered

Trigger for when a new Microsoft 365 user is added/removed

Like (0) ShareShare
ReportReport
Posted on 12 Dec 2023 20:54:50 by 84

I have created a flow that searched for our Office 365 users and added them to a list, the trigger is currently manual.
I am using this list for a few things on SharePoint, that's why I wanted to automate it so that the list is updated whenever a new user is added or removed. Is there a way to do this?

 

Copilot and ChatGTP said yes, but I can't find this trigger at all, looked in this forum for a while and finally one person said that the trigger actually doesn't exist.

Any ideas how I could possibly do this? Alternatives are welcome.

or should I give up? haha

 

Thank you!

  • Verified answer
    Rhiassuring Profile Picture
    8,688 Moderator on 12 Dec 2023 at 21:11:38
    Re: Trigger for when a new Microsoft 365 user is added/removed

    So do you mean - added to Entra? ("Active Directory" for Office 365).

     

    If so, then you can just watch the "All Company" group.  By default, when a new user is added to what you are referring to as the "O365 List", it's added to that group. Which means you can watch it using this trigger.

  • juls Profile Picture
    84 on 12 Dec 2023 at 21:05:42
    Re: Trigger for when a new Microsoft 365 user is added/removed

    Thank you for your super quick reply!

    But not from a group, we don't seem to have groups (I tried that trigger and couldn't find any groups).

    When a new user is added to our Office 365 users list, in general.


    So currently I have made that staff list, but it was triggered manually. 

  • Rhiassuring Profile Picture
    8,688 Moderator on 12 Dec 2023 at 20:59:22
    Re: Trigger for when a new Microsoft 365 user is added/removed

    When a new user is added / removed ... from what? A group? Are you trying to make a staff list? 

     

    If yes, then yes.

     

    Rhiassuring_0-1702414690686.png

     

    The expression I'm using in the condition is: 

    triggerBody()?[1]?['@removed/reason']  (is equal to: deleted)
     
    Rhiassuring_1-1702414757970.png

     

     
    -- since that is how we determine if someone was added, or removed, within the group. 

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2