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 / Flow (that adds users ...
Power Automate
Unanswered

Flow (that adds users to security groups) always fails if *a user doesn't exist, or *if a user already exists in the group. How to mark as successful regardless of errors?

(0) ShareShare
ReportReport
Posted on by

Hello all!

 

I have a flow that uses 'Add user to Group' from the Entra ID connector to add users to a security group. It uses a field of text from an MS Forms submission as the parameter of email addresses to add (of course each email address separated by a semi-colon). And the flow works as intended! If a user isn't a part of the designated security group and exists in our tenant, they are successfully added....

 

jharville_1-1707797845156.png

 

...The weird thing is that the flow *technically* fails (says 'Flow Run Failed' in the below screenshot) when a user doesn't exist, or *if a user already exists in the group. So if you go to the flow run history, it will show failed if *any* of the users from the field in the MS Forms submission meets those 2 pieces of criteria listed above. 

 

jharville_4-1707798087925.png

 

Even though the flow works as intended, is there a way to mark the flow as a successful run even if a *user is not found or if *a user already exists in the security group?

 

^^(Those are the 2 pieces of criteria that are causing the flow to fail even if only one user meets those 2 pieces of criteria. If no users meet those 2 pieces of criteria, the flow only then runs as green and says 'Flow Run Successful')

 

 

Thank you so much,

 

J

 

 

Categories:
I have the same question (0)
  • JonathanTeo1 Profile Picture
    27 on at

    If you want the flow to continue to run even if the find user action fails you could just enable the "configure run after" condition in the next action to "Is Successful" or "Has Failed".

     

    This will allow it to run through the flow and mark it as successful even if that step fails.

    JonathanTeo_2-1707802220860.png

     

    JonathanTeo_1-1707802191516.png

     

  • jharville Profile Picture
    on at

    @JonathanTeo 

     

    Thank you for the response Jonathan. That was actually my initial thought but it doesn't allow you to select that action for this execution item:

     

    jharville_1-1707805512199.png

     

    It lets you do it on the next execution item but this doesn't work for helping the flow be successful every time since the 'Get User Profile (V2)' is where the flow initially fails:

     

    jharville_2-1707805632794.png

     

     

  • JonathanTeo1 Profile Picture
    27 on at

    Hi @jharville,

     

    Yes, it is as you mentioned. It must be enabled on the second action "Add user to group" to allow it to run regardless of success/failure of the previous action.

    I believe that even if the first action fails, if you enable this and the overall flow state will be success.

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 227

#3
Haque Profile Picture

Haque 181

Last 30 days Overall leaderboard