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

Microsoft 365 admin center list all groups with members and owners

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

2 REPLIES 2
Dual Super User II
Dual Super User II

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!

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

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (30,403)