question

GlennMaxwell-2309 avatar image
0 Votes"
GlennMaxwell-2309 asked JoyZ commented

Convert unified group to DL

Hi All

I have an office 365 unified group, can i covert it to office 365 distribution list. will the users loose membership?

office-sharepoint-onlineoffice-exchange-server-administrationoffice-exchange-online-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JoyZ avatar image
0 Votes"
JoyZ answered JoyZ commented

Hi @GlennMaxwell-2309,

Agree with michev.

Script to "convert" Unified Groups to Distribution Lists.

The script first gets a list of Unified Groups and saves it in a constant.

 $Groups = Get-UnifiedGroup -ResultSize Unlimited

It then gets the PirmarySmtpAddress for each group.

 $Groups | ForEach-Object {
 $group = $_
 $GroupEmail = Get-UnifiedGroup -Identity $group.Name | select PrimarySmtpAddress

Next, we get the Members from each group and save them.

 Get-UnifiedGroupLinks -Identity $group.Name -LinkType Members | ForEach-Object {
 New-Object -TypeName PSObject -Property @{
 Group = $group.DisplayName
 GroupEmail = $GroupEmail.primarysmtpaddress
 Member = $_.Name
 EmailAddress = $_.PrimarySMTPAddress
 RecipientType= $_.RecipientType

We then export the members, import the members that are sorted by unique group email.

 Export-CSV “C:UnifiedGroupMembers.csv” -NoTypeInformation -Encoding UTF8
 $distro = Import-Csv C:UnifiedGroupMembers.csv | sort GroupEmail –Unique

Now we delete the Unified Group and insert a pause of 30 seconds

 $distro | foreach{Remove-UnifiedGroup -Identity $_.GroupEmail -force}
 Start-Sleep -s 30

Lastly we create Distribution list with the members that we got from the Unified Groups.

 $distro | foreach{New-DistributionGroup -Name $_.Group -primarysmtpaddress $_.GroupEmail}
 Import-CSV “C:UnifiedGroupMembers.csv” | foreach {Add-DistributionGroupMember -identity $_.GroupEmail -member $_.EmailAddress}

As a supplement, when a Unified Group is created there is a Calendar, OneNote, SharePoint Online site and a OneDrive for business Storage added to it.

If your users start using this feature, then the data within those locations will be deleted.

More information for your reference:

https://github.com/oliveir3/Convert-Office-365-Groups

Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


If an Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @GlennMaxwell-2309,

Do you have any progress on this issue?

Please remember to update this thread if you need further assistance.

0 Votes 0 ·

Hi @GlennMaxwell-2309,

I’m checking how the things are going on about this issue. Whether the post helps you?

You can accept the post as answer if it helps.

Thank you for your understanding and support.

0 Votes 0 ·
michev avatar image
1 Vote"
michev answered

There's no "conversion" process from O365 Group to DL, only in the other way. For your scenario, you will need to manually create a DL and populate it with the membership of the O365 Group.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.