Language:EN
Let's talk
← Back to insightsInsights

How to restrict Microsoft 365 group creation to authorised users

Reading time: 2 min ·

Microsoft 365 and Teams make it quick to create collaborative spaces through groups. However, if this capability is not managed properly, it can create security risks and governance challenges. In this article we explain how to limit Microsoft 365 group creation to a specific set of authorised users.

Risks of allowing unrestricted group creation in Microsoft 365

  • Shadow IT: environments created outside IT's control.
  • Fragmented information: a proliferation of redundant or poorly defined groups.
  • Administrative overhead: difficulty monitoring compliance with policies and regulations.
  • Information leaks: misconfigured access that exposes sensitive data.
  • Loss of governance: no control over naming, retention and regulatory compliance.

Prerequisites for restricting group creation

To implement this configuration you need:

  • Administrator permissions in Microsoft Entra ID, with roles such as Global, Groups or Security Administrator, among others.
  • Basic PowerShell knowledge.
  • The authorised users identified in advance.
  • Licences: Microsoft Entra ID P1/P2 or Basic Education (EDU).

Recommended configuration: centralised control

Best practice: restrict group creation across the whole organisation and grant this privilege only to those who need it for their role.

Steps to restrict group creation

  1. Open the Microsoft Entra ID admin portal.
  2. Go to: Identity > Groups > Group settings.
  3. In the Microsoft 365 groups section, select No to prevent group creation.
  4. Save the changes.
Group settings in Entra ID

Allow group creation only for a security group

This policy directly affects Microsoft Teams. If a user is not authorised, they will not be able to create new teams.

Additional recommendations

  • Communicate the change to affected users.
  • Set up a request channel for new groups.

Step-by-step configuration with PowerShell

  1. Create a security group in Entra ID and note its name.
  2. Install the Microsoft Graph PowerShell module.
  3. Customise and run the following script:

Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
Import-Module Microsoft.Graph.Beta.Groups
Connect-MgGraph -Scopes "Directory.ReadWrite.All", "Group.Read.All"
$GroupName = "<Nombre del grupo creado en el paso 1>"
$AllowGroupCreation = "False"
$settingsObjectID = (Get-MgBetaDirectorySetting | Where-object -Property Displayname -Value "Group.Unified" -EQ).id
if(!$settingsObjectID)
{
 $params = @{
 templateId = "62375ab9-6b52-47ed-826b-58e47e0e304b"
 values = @(
 @{
 name = "EnableMSStandardBlockedWords"
 value = $true
 }
 )
 }
 New-MgBetaDirectorySetting -BodyParameter $params
 $settingsObjectID = (Get-MgBetaDirectorySetting | Where-object -Property Displayname -Value "Group.Unified" -EQ).Id
 }
 $groupId = (Get-MgBetaGroup | Where-object {$_.displayname -eq $GroupName}).Id
 $params = @{
 templateId = "62375ab9-6b52-47ed-826b-58e47e0e304b"
 values = @(
 @{
 name = "EnableGroupCreation"
 value = $AllowGroupCreation
 }
 @{
 name = "GroupCreationAllowedGroupId"
 value = $groupId
 }
 )
 }
 Update-MgBetaDirectorySetting -DirectorySettingId $settingsObjectID -BodyParameter $params
 (Get-MgBetaDirectorySetting -DirectorySettingId $settingsObjectID).Values
 

The last line of the script shows the updated settings:

PowerShell configuration

Key checks

  • EnableGroupCreation must be False.
  • GroupCreationAllowedGroupId must match the GUID of the group you created.
  • Check that members of the group can create groups correctly.

🕒 Note: changes can take up to 30 minutes to take effect.

⚠️ Warning: also check for possible blocks from OWA policies.

About the author:
Kevin Maldonado, LinkedIn

Cybersecurity technician at Allbit Solutions, specialising in protecting Microsoft 365 environments and endpoints. He holds Microsoft certifications in identity and security administration (Identity and Access Administrator Associate, 2025; Azure Security Engineer Associate, 2024), among other credentials.

Shall we talk about your Microsoft environment?

Talk to a specialist →