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 / Get list of all groups...
Power Automate
Unanswered

Get list of all groups a user is a member of

(0) ShareShare
ReportReport
Posted on by 4

I am trying to create a flow that will output each group a user is a member of. I plan to take these results and display them back to a power app gallery. Is it possible to do this through the "Send an HTTP request V2" connection? If so I cant seem to find the correct logic to get it to run. Thanks in advance 

Categories:
  • bentorrey Profile Picture
    15 on at

    I think you'll end up needing to do a GraphAPI call there. A few of the Office 365 Groups or Office 365 actions get you close, like the "list groups I own and belong to", but ultimately think you'll need to do a GraphAPI call. 

     

    List a user's direct memberships - Microsoft Graph v1.0 | Microsoft Learn

    for example: https://graph.microsoft.com/v1.0/users/{id}/memberOf

     

    not sure who you're looking up and how you're passing that into the flow, but you could lookup the user with the Get User Profile (v2) and return id among other fields, and then do the GET to GraphAPI.

     

    To use the Graph API in your Flow, you'll need an app registration and some Group.Read assigned. Lots of good tutorials on that, Build a Power Automate flow using the Graph API | TechTarget

    and go to GraphExplorer to test first, always helpful. Graph Explorer | Try Microsoft Graph APIs - Microsoft Graph

     

    Anyway, then you can do a GET like this one: 

    bentorrey_0-1709948652380.png

     

     

     

     

  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    That will be excruciatingly slow.  Recommend you use your AD extracts, or PowerShell.

  • ChrisRustemeyer Profile Picture
    4 on at

    Is the Graph a premium license? At this point we are trying to use all the free connections unfortunately. I was able to get the list of all the groups through the Entra ID Get Groups. The issue is the Get Groups returns the Group ID and not the name. Any ideas on how to convert that ID to the name of the group easily. It seems like it should be an easy task but Im not having luck. I have tried the loop through of getting information for the group buts its extremely slow when processing 200+ groups for some users. 

  • ChrisRustemeyer Profile Picture
    4 on at

    I was able to turn the Group ID passed from Power Automate into DisplayName by using the below in my gallery

       LookUp(
            Office365Groups.ListGroups({'$filter': "id eq '" & ThisItem.Value & "'"}).value
            ,   true
        ).displayName

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard