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

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

Hello!

 

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

cfoenki_0-1633595702240.png

 

I would like to retrieve all Members inside my gallery.

 

Thanks in advance for the help 🙂

 

4 REPLIES 4
WarrenBelz
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

Announcements
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)