Skip to main content

Notifications

Community site session details
Power Automate - General Discussion
Answered

Trying to check if the user's account exist using power automate

Like (0) ShareShare
ReportReport
Posted on 21 Jun 2022 12:25:56 by 150

Hi everyone !

 

I'm trying to make a flow that checks if the user has a microsoft 365 account or not. I can't seem to make it to work, can anyone help me ?

 

Githendra23_0-1655814337640.png

Thanks!

  • Verified answer
    ScottShearer Profile Picture
    25,218 Most Valuable Professional on 21 Jun 2022 at 14:05:02
    Re: Trying to check if the user's account exist using power automate

    @Githendra23 

    If you want to use a condition, you can use the Search for users action - see my example below.  In my example,  the condition returns true if the user is not found.

    image.png

  • ScottShearer Profile Picture
    25,218 Most Valuable Professional on 21 Jun 2022 at 14:00:13
    Re: Trying to check if the user's account exist using power automate

    @Githendra23 

    In short, no, if you are using the Get user profile action as it errors if the user is not found.  My example performs the same function as a condition.  If you need additional actions following the emails, you could use Scopes and set the run after on the scope instead of the individual actions.

     

  • Githendra23 Profile Picture
    150 on 21 Jun 2022 at 13:55:49
    Re: Trying to check if the user's account exist using power automate

    Hi @ScottShearer 

     

    Isn't it possible with a condition?

  • ScottShearer Profile Picture
    25,218 Most Valuable Professional on 21 Jun 2022 at 13:35:52
    Re: Trying to check if the user's account exist using power automate

    @Githendra23 

    It looks like the Get user profile action errors if the user is not found.  You can leverage the "Run after" settings to make your Flow work - see my example below.

    image.pngimage.pngimage.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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard
Loading started