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

Getting all users of an Office 365 distribution list in a Gallery



I have an application where I would like to add all users of a distribution list listed in a gallery.


My distribution list has the following details



I would like to retrieve all Members inside my gallery.


Thanks in advance for the help 🙂


Super User
Super User

Hi @cfoenki ,

This blog of mine may be useful to you.


Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Thank you for your reply.

I just tested and in my ListOwnedGroups() Gallery, I have only a few MS Teams group where I am admin.

There is no sign of my distribution list owned by IT department.

@cfoenki ,

I was referring to O365 Groups membership - if this is not the case, this blog is not relevant

But I just used your solution for another of my apps to get all members of a Teams group, very useful thanks!

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,151)