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 / how to get the list of...
Power Automate
Answered

how to get the list of the O365 groups an user belong to (not own )

(0) ShareShare
ReportReport
Posted on by 75

Hi there !

Long story short : I made an app related to a sharepoint list (in a Teams) 

Not all the users are member of this teams , So at the first they connect I want to check if they are, or not member of the Teams and add them. I found a slow way by geting all the user from the group and look in the list if my current user is found or not. In the negative case, I add him/her to it. hooray ! but it's slow (and it will get even slower with the add of new users) 

 

what seems a faster way of doing it would be to get all the groups my user belong to . Unfortunately the only connector I found return the groups I own and belong to or the groups I own... nothing about "the groups I belong to"

Or should I use another connector ?

 

thanks for your help

 

for the reccord: here is my flow so far (and I will need to add aloop as soon as I reach 999 users)

 

flow_addtogroup.png

Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    Hi!

    Did you check this?

    https://docs.microsoft.com/en-us/connectors/office365groups/#list-groups-that-i-own-and-belong-to

    EDIT: sorry I see you already discarded this approach

    What about Azure Active Directory?

    https://docs.microsoft.com/en-us/connectors/azuread/#get-groups-of-a-user-(v2)

     

    Hope this helps

     

  • fsim Profile Picture
    75 on at

    @efialttes ,

    Hi ! unfortunately, the AD group requires some rights I don't have 😕

     

  • Verified answer
    v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @fsim ,

     

    As you said, the function to get the 0365 groups a user belong to is not supported in Microsoft flow currently.

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • mobilismexico Profile Picture
    261 on at

    @v-alzhan-msft 's post should not be marked as Solution.

     

    @efialttes 's post is the actual solution. Thanks. Worked for me.

     

  • mobilismexico Profile Picture
    261 on at

    I'll try it:

     

    mobilismexico_1-1660410715509.png

     

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 1,027

#2
Valantis Profile Picture

Valantis 809

#3
Haque Profile Picture

Haque 645

Last 30 days Overall leaderboard