Restrict Who Can Create Microsoft 365 Groups and Teams
By default, every user can create Microsoft 365 groups, and Microsoft calls that the recommended approach because people can start collaborating without waiting on IT (Manage who can create Microsoft 365 Groups (opens in a new tab)). If you have a business reason to restrict it, you can limit creation to members of one group. That limit affects every service that creates groups: Outlook, SharePoint, Viva Engage, Microsoft Teams, Planner, Power BI (classic) and Project for the web / Roadmap.
Use it when: you have a governance requirement (naming, lifecycle, data ownership) and a plan for how people will request new teams. Microsoft suggests a training course followed by adding people to the allowed group, rather than a blanket block.
Before you start
- License: the admin who configures the setting and the members of the allowed group need Microsoft Entra ID P1 or P2 (or Microsoft Entra Basic EDU). Members who only use groups don't (Licensing requirements (opens in a new tab)). See the uncertainty note under Gotchas.
- Roles: Groups Administrator can manage the
Group.Unifiedsettings (List settings roles (opens in a new tab)). Learn's change script connects withDirectory.ReadWrite.AllandGroup.Read.Allusing the Microsoft Graph PowerShell beta module. - Who it won't stop: Global Administrators (admin center, Planner, Exchange, SharePoint), Exchange Administrator, Directory Writers, Groups Administrator, SharePoint Administrator, Teams Service Administrator, User Administrator and Partner Tier 1/2 Support can still create groups in the places Learn lists (Manage who can create (opens in a new tab)).
Step by step
- Check the current state with the read-only script below.
- Create the allowed group. In the Microsoft 365 admin center, Groups > Add a group, choose the type, and add the people (or nested groups) who may create groups as members, not owners. Only one group can control creation, but it can contain other groups (Step 1 (opens in a new tab)). Admins in the roles above don't need to be members.
- Apply the setting with Learn's script (Step 2 (opens in a new tab)). It uses
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagementandMicrosoft.Graph.Beta.Groups, creates theGroup.Unifiedsettings object from template62375ab9-6b52-47ed-826b-58e47e0e304bif it doesn't exist, then setsEnableGroupCreationtoFalseandGroupCreationAllowedGroupIdto your group's object ID withUpdate-MgBetaDirectorySetting. This changes tenant-wide behavior; run it after the read-only check and keep the output. - Wait and test. Changes can take 30 minutes or more. Sign in as a user who isn't in the allowed group and isn't an admin, open Planner > New plan: you should see that plan and group creation is disabled. Repeat with a member of the group (Step 3 (opens in a new tab)).
- Publish the request path (form, ticket type or Teams request process) so blocked users know where to go.
Read-only PowerShell: current group creation setting
Read-only. Modules: Microsoft.Graph.Groups. Scopes: GroupSettings.Read.All (settings) and Group.Read.All (to resolve the allowed group's name). Directory Readers or Global Reader can read setting objects (List settings (opens in a new tab)). Not tested against a live tenant.
Connect-MgGraph -Scopes "GroupSettings.Read.All","Group.Read.All"
$unified = Get-MgGroupSetting -All | Where-Object DisplayName -eq "Group.Unified"
if (-not $unified) {
"No Group.Unified settings object: defaults apply, so all users can create Microsoft 365 groups."
return
}
$values = @{}; $unified.Values | ForEach-Object { $values[$_.Name] = $_.Value }
$allowed = $values["GroupCreationAllowedGroupId"]
$name = if ($allowed) { (Get-MgGroup -GroupId $allowed -Property displayName).DisplayName }
[pscustomobject]@{
EnableGroupCreation = $values["EnableGroupCreation"]
GroupCreationAllowedGroupId = $allowed
AllowedGroupName = $name
} | Export-Csv .\group-creation-setting.csv -NoTypeInformation
EnableGroupCreation (default True) and GroupCreationAllowedGroupId (default empty) are documented Group.Unified template settings (Template settings (opens in a new tab)). The v1.0 Get-MgGroupSetting without -GroupId lists tenant-level settings (Get-MgGroupSetting (opens in a new tab)); Learn's change script uses the beta equivalent (Get-MgBetaDirectorySetting).
Gotchas
- License wording differs. The groups settings reference says
EnableGroupCreationitself doesn't require Microsoft Entra ID P1, while the Microsoft 365 article requires P1/P2 (or Basic EDU) for the configuring admin and the allowed members. Plan for the stricter requirement. - Group type wording differs. The settings reference describes
GroupCreationAllowedGroupIdas a security group; the Microsoft 365 article says a Microsoft 365 group or a security group can be used. A security group matches both. - OWA mailbox policy can also block creation. If allowed members still can't create groups, check their OWA mailbox policy (Step 3 (opens in a new tab)).
- It doesn't touch existing groups. This controls creation only; ownerless and stale groups need their own cleanup (see Groups and their owners).
- Setting names are case-sensitive in the update body; copy them from Learn.
Check it worked
Rerun the read-only script: EnableGroupCreation should be False and AllowedGroupName should be your group. Then repeat the Planner test from step 4.
Roll back
Rerun Learn's script with $GroupName = "" and $AllowGroupCreation = "True" to let all users create groups again (Step 2 (opens in a new tab)).
Related on EntraReady: Teams external vs guest access, SharePoint and OneDrive external sharing, Dynamic membership groups, Restore a deleted Microsoft 365 group.
← All GuidesIs this still accurate?
Spotted something outdated or wrong on this page? Tell us in a sentence. The page address is sent with it.