Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Microsoft 365 admin center list all groups with members and owners



Is it possible, with Power Automate, to make list of all defined groups (Distribution list) in Microsoft 365 admin center?

Also I need all members of the groups with owners of that groups.


Best regards,



Hi @DejanLazarevic 


Basically the direct actions, do not provide the data from all groups. It is only O365 groups using the O365 connector and the Security groups using the Azure AD connector. But, you can use the Graph API to get all the groups and their members and the owners and this includes distribution lists as well. You can check out this post here where I Have shown a way to do this by creating a custom connector from Graph API:


Hope this Helps!


If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Hi @yashag2255 ,

thanks for answer and useful link.


Finally I got list of all groups with Graph API and your solution with Custom Connector in Power Automate.

Now I have only one issue.

How to get Owner of Distribution list?


I regularly entered Distribution list's owner in Microsoft 365 admin center which is also visible from Exchange admin center but not from Azure Active Directory. 

I tried to call this API:{id}/owners$expand=owners

but both of them return empty object for Distribution list's owner.


I can't add Distribution list owner in Azure Active Directory because this functionality is disabled.

If you have any suggestion or recommendation I would be grateful.



Frequent Visitor

Hi there, I'm quite new to Power Automate so any help appreciated. I'm trying to set up a scheduled weekly flow which will provide the details of all office365 groups I own alongside each groups' members showing first name, surname and 365 email address in a simple csv or excel table. I've seen that there is an existing Power Automate template "Get a weekly email with the members of all my Office 365 groups" which sends an email with these details but need help to understand how I could tailor this to the required format rather sending the email please?

Community Champion
Community Champion

Hi @Stevejm,

what do you mean saying  "tailor this to the required format "? 

Contact me if you are interested in custom Power Automate development.

Thanks for the reponse Victor. What I meant was rather than having the details provided in an email I would like the data to be in a csv or excel table displaying four columns - the name of the group the member is in, their first name, their surname and their office 365 email address/UPN.

Community Champion
Community Champion

In other words you do not wish to send email but rather create a csv/xls file.  I do not see any problem - find the examples and try to reproduce them.

Contact me if you are interested in custom Power Automate development.
Frequent Visitor

Hi Victor, as mentioned I am new to Power Automate so I'm after the details of how to edit the template flow "Get a weekly email with the members of all my Office 365 groups" to do this  

Hi Stevejm,


I have created a flow for your requirnment considering that you are a beginner.


The Flow can be downloaded from my Github URL. This has flow and Excel with the sample data.


Please let me know if you still need any help.




BR, Raja Subramanian


If you feel this helped you. please hit a Thumps UP and Solve this as a Solution.

Frequent Visitor

Thanks very much Raja. I'll give it a try today. Much appreciated

Advocate I
Advocate I

Thanks @Stevejm.


If this helps, please hit Thumps UP icon and Mark as Solution. So, Other community members will get benifit.

Frequent Visitor

Hi Raja, I imported the zip file, edited the Excel element to point to a file in my One Drive and ran the flow. The file populated the correct fields but there is an issue. What is happening is that, rather than create a record for only the groups that the member is in, the flow is creating a record for each person for all groups that I own. For example, a member who is really in only 5 Office365 Groups is having over twenty records - created one for each group I own. Any assistance you can provide would be much appreciated.



It's my bad. There was an additional loop. I have corrected it now and the updated flow can be found in the below Git-Hub Location.




File name:

Frequent Visitor

Thanks again Raja, I've managed to run this (will test tomorrow properly) but it is looking good. One further request if I may, the flow is currently returning Group Owners as well as Group Members. Is there any way it could be changed to just provide only the Group Members please?

Frequent Visitor

Hi ,@rajasubr Tested this and all good. If you get the chance appreciate if you could look at my question above about only getting group members not owners but if it cannot be done I can workaround that. Thanks again.

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,647)