Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
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

  • mobilismexico Profile Picture
    261 on at
    Re: how to get the list of the O365 groups an user belong to (not own )

    I'll try it:

     

    mobilismexico_1-1660410715509.png

     

  • mobilismexico Profile Picture
    261 on at
    Re: how to get the list of the O365 groups an user belong to (not own )

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

     

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

     

  • Verified answer
    v-alzhan-msft Profile Picture
    on at
    Re: how to get the list of the O365 groups an user belong to (not own )

    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.

  • fsim Profile Picture
    75 on at
    Re: how to get the list of the O365 groups an user belong to (not own )

    @efialttes ,

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

     

  • efialttes Profile Picture
    14,756 on at
    Re: how to get the list of the O365 groups an user belong to (not own )

    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

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics