web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Microsoft 365 admin ce...
Power Automate
Unanswered

Microsoft 365 admin center list all groups with members and owners

(0) ShareShare
ReportReport
Posted on by 32

Hi!

 

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,

Dejan

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    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: https://www.bythedevs.com/post/working-with-o365-groups-dl-s-and-security-groups-in-power-automate

     

    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!

  • DejanLazarevic Profile Picture
    32 on at

    Hi @yashag2255 ,

    thanks for answer and useful link.

     

    Finally I got list of all groups with Graph API https://graph.microsoft.com/v1.0/groups 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:

    https://graph.microsoft.com/v1.0/groups/{id}/owners

    https://graph.microsoft.com/v1.0/groups?$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.

     

    Dejan

  • Stevejm Profile Picture
    68 on at

    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?

  • VictorIvanidze Profile Picture
    13,079 on at

    Hi @Stevejm,

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

  • Stevejm Profile Picture
    68 on at

    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.

  • VictorIvanidze Profile Picture
    13,079 on at

    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.

  • Stevejm Profile Picture
    68 on at

    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  

  • rajasubr Profile Picture
    75 on at

    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.

     

    https://github.com/rajasubr-github/Power-Automate

     

    Please let me know if you still need any help.

     

    Thanks.

     

    BR, Raja Subramanian

     

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

  • Stevejm Profile Picture
    68 on at

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

  • rajasubr Profile Picture
    75 on at

    Thanks @Stevejm.

     

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 248 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 207 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 101 Super User 2026 Season 1

Last 30 days Overall leaderboard