Hi Experts
I have mail enabled security group in exchange online. i am trying to add few users using the below syntax.
Import-csv C:\data.csv | ForEach {Add-DistributionGroupMember -Identity group@contoso.com -Member $_.users}
I am getting the below error. I am Global Admin and i dont have mailbox for my account.
You don't have sufficient permissions. This operation can only be performed by a manager of the group.
+ CategoryInfo : NotSpecified: (:) [Add-DistributionGroupMember], OperationRequiresGroupManagerException
+ FullyQualifiedErrorId : [Server=NJ1PT01RT7328,RequestId=ght56789-1234-458o-309j-26789456789f1,TimeStamp=3/19/2021 5:26:47 AM] [FailureCategory=Cmdlet-OperationRequiresGroupManagerException] D7689533,Microsoft.Exchange.Managemen
t.RecipientTasks.AddDistributionGroupMember
+ PSComputerName : outlook.office365.com