How do we restrict users from creating teams.

IniobongNkanga-8038 266 Reputation points


I would like to know how to restrict users from creating groups in Teams.

I tried to do it by following this direction . It gives an error with running command: New-AzureADDirectorySetting -DirectorySetting $settingsCopy

We now have the Azure P1 assigned to a global admin. Not sure what we are doing wrong?;



Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
651 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,230 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,404 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,820 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Dillon Silzer 54,746 Reputation points

    Hi @IniobongNkanga-8038

    Try the following (from


    If it doesn't work it most likely is due to a issue with the sample/command as seen in (Microsoft is looking into the issue).


    If this is helpful please accept answer.