BypassSecurityGroupManagerCheck

Glenn Maxwell 10,146 Reputation points
2021-12-01T04:50:18.5+00:00

Hi All

I have using exchange 2016 hybrid environment, i have mail enabled security group in exchange onprem lets say group1@Company portal .com, i want to remove user1 from the ownership and add user2 as the new owner. I am getting below error from GUI.
You don't have sufficient permissions. This operation can only be performed by a manager of the group

Will the below syntax work for mail enabled security group.

Set-DistributionGroup group1@Company portal .com -ManagedBy @{Add="user2@Company portal .com"} -BypassSecurityGroupManagerCheck
Set-DistributionGroup group1@Company portal .com -ManagedBy @{Remove="user1@Company portal .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,174 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,345 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,884 questions
{count} votes

1 additional answer

Sort by: Most helpful
  1. KyleXu-MSFT 26,206 Reputation points
    2021-12-02T01:39:50.297+00:00

    @Glenn Maxwell

    When you use a non-owner account to manage the owner list, you need use "-BypassSecurityGroupManagerCheck" parameter. Otherwise, you will need to use this owner to manage this group(promote this account to admin).


    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