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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Urgent: Power Automate...
Power Automate
Suggested Answer

Urgent: Power Automate: Entra ID Guest accounts provisioned via SharePoint external sharing.

(0) ShareShare
ReportReport
Posted on by

We have an internal employee onboarding Power Automate flow using the Office 365 Users trigger "When a new user is created".Recently, an employee shared a folder securely via SharePoint Online with new external partners. This automatically provisioned background Entra ID Guest User accounts (with the #EXT# UPN suffix).Our Power Automate trigger unexpectedly captured these guest directory provisions, treated them as new internal employees, and incorrectly sent our corporate onboarding welcome emails to the external guest addresses.

The production flow is currently unmodified. We need Microsoft Support to help us:

  1. Provide the proper OData filter query or trigger condition to ensure the trigger only fires for internal Member accounts and entirely ignores Guest accounts.

  2. Help us safely implement a validation step to prevent this behavior from happening on future external shares.

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    679 on at
    Hi,
     
    Can you tell the exact name of the trigger or share a screenshot? In my environments, I don't have a trigger on the Office 365 Users connector.
  • Suggested answer
    chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
     
    Add a Trigger Condition that prevents the flow from running when a Guest user is created. This stops execution before any actions occur.
     
    Select the "When a new user is created" trigger and click on Settings and under Trigger Conditions click Add. 

    Add this expression:
     
    @and(equals(triggerBody()?['userType'], 'Member'), not(contains(triggerBody()?['userPrincipalName'], '#EXT#')))
     
    Save and test 
     
    Flow will not run at all for Guest accounts and no run history is logged.
     
    Hope it helps!

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard