cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
daniellemaree Helper III
Helper III

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
Community Support

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 Helper II
Helper II

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (8,354)