Maintain DL from a MS Teams Membership List - PowerShell or otherwise

Copper Contributor

I would like to update a DL with the membership in a Team. Via PowerShell or other automated way. When a user adds/removes themselves to/from a public MS Team, I would like to sync that membership to a related DL. Like a nightly job run (or realtime). The DL would have Send As permissions so that the coordinators of the Team could use the DL to send email out. This would become a self-managed DL list = to the membership.


I see a lot of "Use the DL to make the Team membership" but I am kind of looking for the opposite.

 

1 Reply
Each team/O365 group has an undelrying mailbox with all the users added as members, so you might just use that? Just make sure all users are added as "subscribers", and grant Send As permissions as needed.