How do we restrict users from creating teams.



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 Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,478 questions
Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
478 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
5,876 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.
4,731 questions
No comments
1 vote

1 answer

Sort by: Most helpful
  1. Dillon Silzer 35,956 Reputation points

    Hi @Anonymous

    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.