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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Office 365 Groups - Ch...
Power Automate
Unanswered

Office 365 Groups - Check If Member Exists Before Adding

(0) ShareShare
ReportReport
Posted on by 42

Hi,

 

Is it possible to check whether a user exists in an O365 Group  prior to adding to an O365 Group?

 

Is there somehow the information can be validated in the flow? If so could you explain how this can be achieved?

 

Thanks

 

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    on at
    Re: Office 365 Groups - Check If Member Exists Before Adding

    Hi @daniellemaree,

     

    The function to check if a user exists in an O365 Group is not supported in microsoft flow currently.

    I afraid that there is no way to achieve your needs 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
    on at
    Re: Office 365 Groups - Check If Member Exists Before Adding

    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
    on at
    Re: Office 365 Groups - Check If Member Exists Before Adding

    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

     

     

  • PaulineShare Profile Picture
    21 on at
    Re: Office 365 Groups - Check If Member Exists Before Adding

    Thanks - very useful indeed

  • ques0buffet Profile Picture
    105 on at
    Re: Office 365 Groups - Check If Member Exists Before Adding

    Thank you for the simple solution!
    @bottekott 

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard