cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DejanLazarevic
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
yashag2255
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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,751)