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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Search for users

(0) ShareShare
ReportReport
Posted on by 86

Good Day Community

trust you are well.. 

 

I am busy creating a IT Onboarding process where HR will complete a MS Form and then the flow needs to Search for a user and create the O365 user if they do not exist. and if the user does exist then to create the user but just modify the UPN

From what I have seen the way to go is 

Search for users (V2) and then a condition

with the expression = length(outputs('Search_for_users_V2)')?['body/value']) is greater than or equal to 0

 

the flow works well well if the user does not exist, but when the user does exist then the flow just fails stating that the object does exist.

Anyone have a solution or can guide me as to where I am going wrong?

 

Thank you 

 

 

 

Categories:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,079 on at

    Show the flow.

  • Rhiassuring Profile Picture
    8,690 Moderator on at

    Hi there @PuristII808,

     

    You're super close! Try something like this...

    Rhiassuring_0-1673573637832.png

     

    Cheers,

     

    Rhia

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard