cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
daniellemaree
Level: Powered On

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

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

 

3 REPLIES 3
Community Support Team
Community Support Team

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

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

Administrator
Administrator

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

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

-Gabriel
Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!
Highlighted
bottekott
Level: Powered On

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

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

 

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,949)