Is there any powershell script to remove teams owner via powershell if yes please do share with me as we need to remove the owner from all teams after the tenant to tenant migration?

Vinod Survase 4,801 Reputation points
2021-08-12T07:29:30.32+00:00

Is there any PowerShell script to remove teams owner via PowerShell if yes please do share with me as we need to remove the owner from all teams after the tenant to tenant migration?

Microsoft Teams | Microsoft Teams for business | Other
{count} votes

Answer accepted by question author
  1. Sharon Zhao-MSFT 25,766 Reputation points Microsoft External Staff
    2021-08-13T01:12:21.15+00:00

    @Vinod Survase ,

    Remove-TeamsUser can remove an owner or member from a team, and from the unified group which backs the team. The following is an example:

    Remove-TeamUser -GroupId “GroupID” -User owner@example.com -Role Owner  
    

    About the role parameter, please note the following information:
    122848-image.png


    If the response is helpful, please click "Accept Answer" and upvote it.

    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 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.