Security Policy Errors

Restrict Microsoft 365 Group Creation to a Security Group

Maira MehtabMaira Mehtab Nov 25, 2026 868 views

Question details

Understand Exchange user role assignment policies and limit Microsoft 365 group creation to members of a designated security group.

Restrict Microsoft 365 Group Creation to a Security Group
Product
Microsoft 365 and Exchange Online
Device & OS
not provided
Scenario
An administrator wants only a designated security group to create Microsoft 365 groups and needs to distinguish that policy from distribution group and personal contact group permissions.
Observed behavior
The desired configuration allows designated users to create Microsoft 365 groups without treating personal contact groups as organization-wide groups.
Before you start

Create or identify the security group whose members may create Microsoft 365 groups, and copy its object ID from the Microsoft Entra admin center. Check Microsoft's current licensing and administrator role requirements for restricting group creation, and review any existing Group.Unified directory settings before changing them.

Solution 1Recommended

Restrict Microsoft 365 group creation with Microsoft Graph PowerShell

Use the Microsoft 365 group creation policy to allow members of a designated security group to create groups.

This tenant-wide policy is separate from Exchange distribution group role assignment policies and personal Outlook contact groups.

The restriction can affect group creation through services such as Microsoft Teams and Planner. Certain administrator roles can still create groups despite the restriction.

1
Get the security group ID

In the Microsoft Entra admin center, open Groups > All groups, select the permitted security group, and copy its Object ID. Add the users who should be allowed to create Microsoft 365 groups to that group.

2
Connect to Microsoft Graph

Open PowerShell and install the directory management module with Install-Module Microsoft.Graph.Identity.DirectoryManagement if needed. Run Connect-MgGraph -Scopes 'Directory.ReadWrite.All' and sign in with an account authorized to manage directory settings and grant the requested permission.

3
Find or create the group settings

Run $setting = Get-MgDirectorySetting | Where-Object { $_.DisplayName -eq 'Group.Unified' }. If no setting exists, run $template = Get-MgDirectorySettingTemplate | Where-Object { $_.DisplayName -eq 'Group.Unified' }, then $setting = New-MgDirectorySetting -BodyParameter @{ templateId = $template.Id; values = $template.Values }.

4
Set the creation policy

Replace GROUP-OBJECT-ID with the copied ID, then run: $values = $setting.Values; ($values | Where-Object { $_.Name -eq 'EnableGroupCreation' }).Value = 'False'; ($values | Where-Object { $_.Name -eq 'GroupCreationAllowedGroupId' }).Value = 'GROUP-OBJECT-ID'; Update-MgDirectorySetting -DirectorySettingId $setting.Id -BodyParameter @{ values = $values }.

5
Verify the settings and access

Run Get-MgDirectorySetting -DirectorySettingId $setting.Id and inspect its Values for EnableGroupCreation and GroupCreationAllowedGroupId. After the change propagates, test group creation with a member and a nonmember who does not hold an exempt administrator role.

Restrict Microsoft 365 group creation with Microsoft Graph PowerShell
Allow time for the policy to apply: Policy changes can take time to propagate across Microsoft 365 services. The setting does not prevent users from creating personal Outlook contact groups.
Free Microsoft Office alternative

Work with Office documents in WPS Office

WPS Office is a free, lightweight, easy-to-use alternative for working with Office documents. Its familiar interface and Microsoft Office format compatibility make it easier to migrate files, although Microsoft 365 group policies must still be managed in Microsoft services.

Create and edit documents used to record group access policiesCompatible with Microsoft Word, Excel, and PowerPoint formatsFamiliar interface for users moving from Microsoft OfficeFree, lightweight tools for everyday office work
microsoft office alternative - wps office

Frequently Asked Questions

Do MyDistributionGroups permissions restrict Microsoft 365 group creation?

No. MyDistributionGroups controls distribution group operations in Exchange user role assignment policies. Use the Group.Unified directory setting to restrict Microsoft 365 group creation.

What does MyDistributionGroupMembership control?

It controls a user's ability to join or leave eligible distribution groups, subject to the group's membership settings. Review it in Exchange admin center under Roles > User roles.

Will users still be able to create personal contact groups in Outlook?

Yes. Personal contact groups are separate from Microsoft 365 groups and organization-wide distribution groups, so the Microsoft 365 group creation policy does not control them.

Why can an administrator still create a Microsoft 365 group after the restriction?

Certain administrator roles are exempt from the group creation restriction. Test with a nonmember who does not hold an exempt role, and check Microsoft's current documentation for the applicable roles.

Where can I find the permitted security group's object ID?

In the Microsoft Entra admin center, open Groups > All groups, select the security group, and copy its Object ID from the group details.