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 / Office 365 Groups Chec...
Power Automate
Unanswered

Office 365 Groups Checking First to See user is not in group

(0) ShareShare
ReportReport
Posted on by 42 Microsoft Employee

Hi

 

I have a flow I have built and it users can request to join departments. The flow uses the O365 Connector tool to add the user to the 0365 group. 

 

However to dumb proof the flow if a user is already in the group and requesting it again, the flow errors as the user is already  in the O365 group.  "One or more added object references already exist for the following modified properties: 'members'.","

 

Is there a way from the action causing the error and to simply reject the user from the request?

 

Or is it possible to get the flow to check first if the user is in the group? If so how can this be done

bp1.PNG

 

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @daniellemaree,

     

     

    The function to check if the user is in the group is not supported in microsoft flow currently.

    I afraid that there is no way to achieve your needs in Microsoft Flow currently.

     

    Also there is no any way from the action causing the error and to simply reject the user from the request in microsoft flow currently.

     

    If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    Best regards,

    Alice

  • GabrielStJohn Profile Picture
    Microsoft Employee on at

    Hello, @daniellemaree!

    Thank you for posting on the Flow Community Forum! If you have already posted your idea to the Flow Community Ideas Forum or found an existing idea to upvote, then you need to post the URL to the idea’s thread as a reply to this thread. Then click "Accept as Solution" on the reply if you approve it as a solution to your issue so that other users may vote for the Flow Idea and identify the information easily within this thread.

    Thank You for being an active member of the Flow Community!

    -Gabriel
    Flow Community Manager

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I wanted to add users to a group based on entries in a sharepoint list.

    I solved it the following way:

     

    1. Trigger: when an item is created or modified
    2. Action: Initialize a string variable "GroupMembers"
    3. Action: "list group members"
    4. Apply to each "value" from previous step
      1. Action: "Append to string variable"
        1. Name = variable you created in step 2
        2. Value = mail;
    5. Add condition
      1. if "GroupMembers" does not contain "email-value from sharepoint list item"
      2. If yes. Add member to group action
      3. If no, empty

     

     

  • hdes Profile Picture
    2 on at

    thanks for you W/A.

     

     

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 997

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 642

Last 30 days Overall leaderboard