title: How to copy Office 365 group membership to another group?
body: <p>I'm hoping there is a powershell command that can copy the group membership of an O365 group to a different O365 group. I got this from the web, but it's not working because my source group "is not a valid mailbox recipient."</p>
  
  <pre><code>Get-DistributionGroupMember -Identity "Source Group Name" |% {Add-DistributionGroupMember -Identity "Destination Group Name" -Member $_.PrimarySmtpAddress}
  </code></pre>