Looking to restrict the creation of groups in Teams.

IBN 4,331 Reputation points


Please i need your help on how to restrict user from creating group.

It Only allow global admins to control this. I Followed directions on this site: https://learn.microsoft.com/en-US/microsoft-365/solutions/manage-creation-of-groups?view=o365-worldwide . It gives an error with running command: New-AzureADDirectorySetting -DirectorySetting $settingsCopy .

I Was told that we need to have an Azure Premium licenses. We now have the Azure P1 assigned to a global admin. Not sure what we are doing wrong?


Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,031 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,389 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JimmySalian-2011 41,916 Reputation points


    It seems there is issue with the New-AzureADDirectorySetting can you follow this link and see if fixes the issue, you will need to extract the GroupCreator script and run step by step.
    Also I believe the script should have SetAzureADDirectorySetting instead of New-AzureADDirectorySetting. Please can you try that?


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.