My end goal is to provide my users with a drop down that will have all the distribution lists they are a member of.
Using the Office365Groups.ListGroups I am able to get a list of all the groups and distribution lists in my company.
Using the Office365Groups.ListGroupMembers I am able to see the users that are members of those groups.
I thought I could just create a dropdown and use Office365Groups.ListOwnedGroupsV3,
however when I use Office365Groups.ListOwnedGroupsV3 it appears to only return office 365 groups and not any distribution lists.
So I can currently create a list of the distribution groups and see the users but I am getting stuck on how I create a dynamic dropdown for the current user that will show the distribution lists they belong too. Is there a different command to use to return the distribution lists or is there a way to compile the list from a combination of the first two commands.
Any help would be greatly appreciated.


Report
All responses (
Answers (