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 Apps / List security groups f...
Power Apps
Answered

List security groups for an user from AAD using Office365Groups.ListGroups connector?

(0) ShareShare
ReportReport
Posted on by 43

Hi,

 

Is it possible to list the security groups from AAD using Office365Groups.ListGroups connector? 

 

Thank you.

Categories:
I have the same question (0)
  • Verified answer
    SebS Profile Picture
    4,867 Super User 2026 Season 2 on at

    @YavapaiR 

     

    This specific connector only can retrieve Office 365 Security Groups

    to retrieve AAD You need to use Azure Active Directory connector if I good remember

     

    Also You need seperate permissions to access any data provided by that connector

  • YavapaiR Profile Picture
    43 on at

    Hi @SebS ,

     

    Thanks for your reply! 🙂

     

    I know we can list members of a security group. 

    ClearCollect(Tests, Office365Groups.ListGroupMembers("449dbxxx-6c1c-44b8-aa2b-xxxxxxxxxx").value)

    This code will list all members of any security group when we pass the group's Id as parameter. 

     

    So, wondering if there's a way of using Office365Groups.ListGroups( "User Id") will retrieve all security groups this user is member of? If we are able to retrieve the security group's member, maybe there's a way to use Office365Groups to do the opposite (retrieving user's groups)?

     

    I tried different ways with no success yet 🤔

  • SebS Profile Picture
    4,867 Super User 2026 Season 2 on at

    @YavapaiR 

     

    You can use Azure AD, but again You need to have permission to that

     

    ClearCollect(YourCollection,ForAll(AzureAD.GetMemberGroups(User().Email,true),AzureAD.GetGroup(Value)))

     

    office365Groups max capabilities are to show Groups what user Owns but I never see any solution what will show all Groups that member is in sorry 😞

  • YavapaiR Profile Picture
    43 on at

    Hi @SebS ,

     

    Thank you!!

     

    I know the connector you shared, but there's a concern from our Sys Admin in using AAD connector to read the Directory. That's why I'm trying to use the O365 Groups connector. There's the option to use AAD Dataverse Users connector as well, but this is not an option for them neither.

  • SebS Profile Picture
    4,867 Super User 2026 Season 2 on at

    @YavapaiR 

     

    I think there is no other way than, at last, from my experience. Also, I understand your sys Admin worries.

  • YavapaiR Profile Picture
    43 on at

    @SebS , yes, using service accounts carries some security concerns. I wonder what's the workaround for this 🤔

  • Verified answer
    YavapaiR Profile Picture
    43 on at

    Only way to accomplish this is using Azure AD connector. If you're having issues connecting to it most likely your Azure tenant will have to follow these steps when you receive an error saying you need admin approval.

     

    https://alextofan.com/2019/02/06/how-to-grant-permissions-to-users-to-use-the-azure-ad-connector-in-flow/

     

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard