copying members from one Office365 group to another Office365 group

I was hoping it would be something this simple:

PS C:\scripts> $list = Get-UnifiedGrouplinks -Identity "SourceGroup" -linktype members | fl emailaddresses
PS C:\scripts> Add-UnifiedGroupLinks -Identity "DestinationGroup" -LinkType Members -Links $list

It would have been easier if everyone used just Distribution Lists; the code for that is easy to find and works.

Apparently it's not the same for Office365 groups. 

Parents Reply Children