Office 365 PowerShell: Add-DistributionGroupMember Command
Office 365 PowerShell: Add-DistributionGroupMember Command
Summary
This TechNet Wiki is based on the TechNet forum Post
Error
Error While adding members in Mail Enabled Security Group. You don't have sufficient permissions. This operation can only be performed by a manager of the group.
help
help Add-DistributionGroupMember -Detailed |
help Add-DistributionGroupMember -Parameter BypassSecurityGroupManagerCheck |
Solution
The reason for the error is group moderation is enabled and that needs to be skipped while adding members:
Add-DistributionGroupMember -Identity 'GroupName' ` -Member 'MemberID' -BypassSecurityGroupManagerCheck -Confirm:$false -Verbose |