You don't have sufficient permissions

Rising Flight 3,771 Reputation points
2022-01-09T06:53:25.47+00:00

Hi

I am using exchange 2016 hybrid environment. i have an onprem mail enabled security group. i am unable to add members or add owner to this mail enabled security group, i am getting the below error

You don't have sufficient permissions. This operation can only be performed by a manager of the group. Are the below syntaxes correct. i want to add owner, add users and modify delivery management.

Import-CSV C:\list.csv | ForEach {Add-DistributionGroupMember -Identity group1@contoso.com -Member $_.users -BypassSecurityGroupManagerCheck}

Set-DistributionGroup group1@contoso.com -ManagedBy @{Add="user2@contoso.com"} -BypassSecurityGroupManagerCheck

Set-distributiongroup "mailenabledsecuritygroup" -AcceptMessagesOnlyFrom @{Add="user3@contoso.com","user4@contoso.com"} -BypassSecurityGroupManagerCheck
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,211 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,369 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,901 questions
0 comments No comments
{count} votes

Accepted answer
  1. KyleXu-MSFT 26,211 Reputation points
    2022-01-10T06:51:16.727+00:00

    @Rising Flight

    If you are not the owner of this group, you could use the "-BypassSecurityGroupManagerCheck" to modify this group.

    Do you get any error message when running this script?


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Marco Schiavon 711 Reputation points
    2022-01-09T11:03:59.323+00:00

    do this

    0 comments No comments

  2. Rising Flight 3,771 Reputation points
    2022-01-09T14:59:48.96+00:00

    i belive first two syntaxes are correct is the third syntax correct

    Set-distributiongroup "mailenabledsecuritygroup" -AcceptMessagesOnlyFrom @{Add="user3@Company portal .com","user4@Company portal .com"} -BypassSecurityGroupManagerCheck

    0 comments No comments