Forum Discussion
Grace Yin
Aug 25, 2017Iron Contributor
Is there a way to convert Office 365 group to Distribution group?
Hi, We have an Office 365 group and I granted a user "owner" permission, but she got permission error in her Outlook like below when she tried to edit the group. However she is able to edi...
- Aug 26, 2017
Only Outlook 2016 properly recognizes Groups and allows you to manage their members. And you need to use the relevant Group controls, not the address book dialog. Check the documentation here: https://support.office.com/en-us/article/Add-and-remove-group-members-in-Outlook-3b650f4a-5c9b-4f94-a1bb-0cca4b1091de
TonyRedmond
Aug 29, 2017MVP
Yes, you can convert an Office 365 Group to a distribution group. You'll have to do it with PowerShell, but the code is easy.
Capture the properties of the existing Office 365 group with Get-UnifiedGroup
Create the new DL with New-DistributionGroup
Update the properties with Set-DistributionGroup
Read the details of the group members with Get-UnifiedGroupLinks
Add the owners to the distribution group with Set-DistributionGroup
Update the DL members with Add-DistributionGroupMember
Nabil Fahmy
Dec 27, 2017Copper Contributor
can you please mention the power-shell commands in more details ?!
i just need to know the exact steps
i just need to know the exact steps
- C_YatesMar 10, 2023Copper Contributor
This just gets all the members in the m365 group, creates and then adds them app to a new distribution group, it doesn't do anything destructive. I just found it easier to do this, then set the options on the distribution group afterwards.
I signed up just to post because I thought the other guy was being a bit mean.
What I've written isn't great, but it'll work.#First open powershell as administrator (Start > run > type:ise > rclick powershell > run as administrator)
#Install Exchange Online Management Shell
Install-Module -Name ExchangeOnlineManagement#Connect to Exchange Online, log in with your admin account
Connect-ExchangeOnline#Source M365 Group (e.g. email address removed for privacy reasons)
$M365GroupName = 'source_m365group_name'#Target Distribution Group (e.g. email address removed for privacy reasons)
$DistGroupName = 'testdist'#Creates the new distribution group with the above name
New-DistributionGroup -Name $DistGroupName#Get the Members from the M365 Group
$M365GroupMembers = Get-UnifiedGroup -Identity $M365GroupName | Get-UnifiedGroupLinks -LinkType Member | Select -expandproperty PrimarySmtpAddress
Foreach ($member in $M365GroupMembers){
"Adding $member..."
Add-DistributionGroupMember -Identity $DistGroupName -Member $member
} - TonyRedmondDec 27, 2017MVP
Would you like me to write the code too?
- TonyRedmondMar 12, 2021MVPAnd what is your problem exactly?
- Nabil FahmyDec 28, 2017Copper Contributoryes , if that possible
- TonyRedmondDec 28, 2017MVP
Sure. Send me details of a valid credit card and I'll be happy to write the code...
But seriously, the steps are very straightforward as per my earlier response.