Powershell script to remove group owners as group members Azure AD

André Oliveira 1 Reputation point
2021-03-24T09:12:07.193+00:00

Hello everyone, I need a Powershell script to get all the group owners as members on Azure AD and remove them (Office 365 groups). Could you please guys Help? Thanks

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,562 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 95,666 Reputation points MVP
    2021-03-24T12:19:44.697+00:00

    That's not a supported scenario, an Owner must be a member of the corresponding Office 365 Group.

    1 person found this answer helpful.