Forum Discussion
Nesting Groups
- Jun 16, 2018
Just use Distribution lists if that's all you want, they are entirely just as available as they have ever been, fully support nesting etc.
Alternatively if you read up, TonyRedmond explains that you can nest an Office 365 group within a DL via powershell if you absolutely must.
You can add an Office 365 Group to a distribution group with PowerShell.
Add-DistributionGroupMember -Id DL -Member O365Group
Just because the GUI doesn't allow something doesn't mean that it cannot be done. This is why I recommend that all Office 365 Admins understand how to use and exploit PowerShell.
Or you could just read Office 365 for IT Pros and learn all the tips we have in that book... ;-)
TonyRedmondIs this no longer functional? I have used it a few weeks ago, but now it doesn't matter what combination of DL and Group I use in my tenant, it gives me an error.
An Azure Active Directory call was made to keep object in sync between Azure Active Directory and Exchange Online.
However, it failed. Detailed error message:
A Unified Group cannot be added as a member of a Distribution List or Security Group or Elevated Group. paramName:
Members, paramValue: , objectType: Microsoft.Online.DirectoryServices.Group RequestId :
619ff911-e67b-4bcf-abb7-89f3a4cb6500
The issue may be transient and please retry a couple of minutes later. If issue persists, please see exception members
for more information.
+ CategoryInfo : NotSpecified: (:) [Add-DistributionGroupMember], UnableToWriteToAadException
+ FullyQualifiedErrorId : [Server=CY4PR08MB2934,RequestId=6b0833cd-2fa1-4674-8b1b-7e65ffaefae4,TimeStamp=4/15/2021
1:45:06 PM] [FailureCategory=Cmdlet-UnableToWriteToAadException] 586CF1B6,Microsoft.Exchange.Management.Recipient
Tasks.AddDistributionGroupMember
+ PSComputerName : outlook.office365.com- TonyRedmondApr 15, 2021MVPLooks like Microsoft has updated Add-DistributionGroupMember to stop people adding Microsoft 365 Groups to DLs. Oh well...