Announcements
Hi,
Is it possible to list the security groups from AAD using Office365Groups.ListGroups connector?
Thank you.
@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
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 🤔
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 😞
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.
I think there is no other way than, at last, from my experience. Also, I understand your sys Admin worries.
@SebS , yes, using service accounts carries some security concerns. I wonder what's the workaround for this 🤔
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 427 Most Valuable Professional
11manish 201 Super User 2026 Season 2
MS.Ragavendar 128 Super User 2026 Season 2