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

%3CLINGO-SUB%20id%3D%22lingo-sub-2259221%22%20slang%3D%22en-US%22%3ECreate%20and%20Maintain%20DL%20from%20a%20MS%20Teams%20Membership%20List%20-%20PowerShell%20or%20otherwise%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2259221%22%20slang%3D%22en-US%22%3E%3CP%3EDoing%20some%20research%2C%20so%20still%20trying%3B%20but%20nothing%20great%20found%20yet.%20I%20would%20like%20to%20update%20a%20DL%20with%20the%20membership%20in%20a%20Team.%20Via%20PowerShell%20or%20other%20automated%20way.%20When%20a%20user%20adds%20or%20removes%20themselves%20to%20or%20from%20a%20public%20MS%20Team%2C%20I%20would%20like%20to%20sync%20that%20membership%20to%20the%20DL.%20Like%20a%20nightly%20job%20run%20(or%20realtime).%20The%20DL%20would%20have%20Send%20As%20permissions%20so%20that%20the%20coordinators%20of%20the%20Team%20could%20use%20the%20DL%20to%20send%20email%20out.%20This%20would%20become%20a%20self-managed%20DL%20list%20%3D%20to%20the%20membership.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EI%20see%20a%20lot%20of%20%22Use%20the%20DL%20to%20make%20the%20Team%20membership%22%20but%20I%20can%20kind%20of%20looking%20for%20the%20opposite.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2259221%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New 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.