Manage who is allowed to create groups in Office 365

Currently, the use of Microsoft Teams for teaching around the world is continuously increasing. However, in the process of using teachers will also encounter a lot of annoying pedagogical situations, such as students setting up secret chat groups on it to do their own work ... But teachers should not be too worry Microsoft provides us with tools so that teachers may want to make this easier to control.

In this tutorial, we will set up allowing who is allowed to create groups on Microsoft Teams

To do this, teachers first need to have an Office 365 system administrator account of their school or unit

Step 1: Create a security group for users who need to create an Office 365 Group

 Important!

When using a  security group  to restrict who can create groups, you should also consider that this will not allow members outside the security group to create groups on the Office 365 sharepoint.

Perform

  • In the Microsoft 365 Admin Center , Select Groups > Groups.

Manage who is allowed to create groups in Office 365

  • Click Add a GroupManage who is allowed to create groups in Office 365
  • Select the Security group type -> Next

Manage who is allowed to create groups in Office 365

  • Name the group and click Next

Manage who is allowed to create groups in Office 365

  • Click Create a group to complete the security group setup, add people or other security groups that teachers want to be able to create groups in their school or unit.

Step 2: Run the above PowerShell command

Teachers need to make sure that Powershell is installed on the computer

Manage who is allowed to create groups in Office 365

Copy the script below into Windows PowerShell ISE .

Replace  SecurityGroupName >  with the name of the security group you created. For example:

$GroupName = "Group Creators"

Save the file as GroupCreators.ps1

In the PowerShell window , use the CD command to return to the folder where the teacher saved the GroupCreators.ps1 file (enter “CD”). Assuming that file is saved in the adminschool folder, drive D, the teacher will type the command as shown

Manage who is allowed to create groups in Office 365

Run the script by typing:

.\GroupCreators.ps1

Manage who is allowed to create groups in Office 365

Then you log in with your administrator account at the Powershell command prompt

$GroupName = "" $AllowGroupCreation = "False" Connect-AzureAD $settingsObjectID = (Get-AzureADDirectorySetting | Where-object -Property Displayname -Value "Group.Unified" -EQ).id if(!$settingsObjectID) { $template = Get-AzureADDirectorySettingTemplate | Where-object {$_.displayname -eq "group.unified"} $settingsCopy = $template.CreateDirectorySetting() New-AzureADDirectorySetting -DirectorySetting $settingsCopy $settingsObjectID = (Get-AzureADDirectorySetting | Where-object -Property Displayname -Value "Group.Unified" -EQ).id } $settingsCopy = Get-AzureADDirectorySetting -Id $settingsObjectID $settingsCopy["EnableGroupCreation"] = $AllowGroupCreation if($GroupName) { $settingsCopy["GroupCreationAllowedGroupId"] = (Get-AzureADGroup -SearchString $GroupName).objectid } else { $settingsCopy["GroupCreationAllowedGroupId"] = $GroupName } Set-AzureADDirectorySetting -Id $settingsObjectID -DirectorySetting $settingsCopy (Get-AzureADDirectorySetting -Id $settingsObjectID).Values

The last line of the script will show the updated settings:

Manage who is allowed to create groups in Office 365

If you later want to change which security group is used, you can run the above script again with the name of the new security group.

If you want to turn off the group creation limit and allow all users to create groups (including students, set $GroupName to “” and $AllowgroupCreation to “True” and run the above script again.

Step 3: Double check if it's already working?

  1. Sign in to Office 365 with a user account that isn't allowed in groups to create groups. 
  2. Select Teams
  3. In Teams, try to create a new group
  4. Teachers will receive a notification to disable the group creation function.

If there are any problems in the process of running the command on Powershell, please create a Ticket and send it to Microsoft's technical support for detailed support (because this is a newly updated feature, there is no many people have experience in this) or select Support in the Microsoft 365 Admin Center

Good luck teachers!

Leave a Comment

Troubleshooting Microsoft Edge Installer Error 124

Troubleshooting Microsoft Edge Installer Error 124

Stuck with Microsoft Edge Installer Error 124? Get proven, step-by-step fixes to resolve it quickly. Master troubleshooting for smooth Edge installation on Windows. No tech skills needed!

How to Fix Microsoft Edge Page Unresponsive Error 2026

How to Fix Microsoft Edge Page Unresponsive Error 2026

Tired of Microsoft Edge "Page Unresponsive" error freezing your tabs in 2026? Get proven, step-by-step fixes to restore lightning-fast browsing. No tech skills needed!

Solving Edge Browser No Internet Secured Glitch (2026)

Solving Edge Browser No Internet Secured Glitch (2026)

Stuck with the Edge browser "No Internet Secured" glitch in 2026? Discover proven, step-by-step fixes to restore your connection fast. Clear cache, reset settings, and more for seamless browsing.

Troubleshooting Microsoft Edge Transparency Multi GPU

Troubleshooting Microsoft Edge Transparency Multi GPU

Tackle Troubleshooting Microsoft Edge "Transparency" Multi GPU issues head-on with step-by-step fixes. Restore smooth, crystal-clear tabs and effects on dual NVIDIA/Intel setups effortlessly.

Solving Microsoft Edge Status In Page Error During Browsing

Solving Microsoft Edge Status In Page Error During Browsing

Tired of Microsoft Edge "Status In Page Error" ruining your browsing? Get proven, step-by-step fixes to resolve it fast. Clear cache, reset settings, and more for seamless surfing.

Troubleshooting Microsoft Edge Certificate Mismatch Warning

Troubleshooting Microsoft Edge Certificate Mismatch Warning

Struggling with Microsoft Edge Certificate Mismatch warning? Discover step-by-step troubleshooting fixes for this common SSL error. Clear cache, update Edge, and more for secure browsing.

How to Reset Microsoft Edge to Default Factory Settings

How to Reset Microsoft Edge to Default Factory Settings

Struggling with a sluggish Microsoft Edge? Discover how to reset Microsoft Edge to default factory settings in minutes. Step-by-step guide with visuals to fix crashes, pop-ups, and performance issues effortlessly.

Troubleshooting Microsoft Edge Youtube Black Screen 2026

Troubleshooting Microsoft Edge Youtube Black Screen 2026

Struggling with YouTube black screen on Microsoft Edge in 2026? Discover proven, step-by-step troubleshooting fixes to restore smooth video playback instantly. Quick solutions that work!

Troubleshooting Microsoft Edge Sidebar Not Opening Glitch

Troubleshooting Microsoft Edge Sidebar Not Opening Glitch

Tired of Microsoft Edge sidebar not opening glitch? Discover quick, effective troubleshooting steps to restore your sidebar instantly. Step-by-step guide with latest fixes for seamless browsing.

How to Fix Microsoft Edge Firewall Blocking Games Fix

How to Fix Microsoft Edge Firewall Blocking Games Fix

Tired of Microsoft Edge "Firewall" blocking your games? Discover proven, step-by-step fixes to unblock games quickly. Get back to seamless gaming with our ultimate guide – no tech skills needed!

Why is Microsoft Edge Better than Chrome in 2026?

Why is Microsoft Edge Better than Chrome in 2026?

Unlock why Microsoft Edge surpasses Chrome in 2026 with blazing speed, unbeatable battery life, AI power, and ironclad privacy. Discover game-changing features that make Edge the smartest switch for power users.

How to Fix PDF Preview Handler Errors in Microsoft Edge

How to Fix PDF Preview Handler Errors in Microsoft Edge

Struggling with PDF Preview Handler Errors in Microsoft Edge? Discover step-by-step fixes to restore seamless PDF previews in File Explorer. Quick troubleshooting, registry tweaks, and prevention tips for the latest Edge versions. Get it fixed now!

How to Manage Microsoft Edge Multiple Profiles and Sync

How to Manage Microsoft Edge Multiple Profiles and Sync

Discover how to effortlessly manage Microsoft Edge multiple profiles and sync across devices. Create, switch, sync favorites, passwords, and more for personalized browsing without hassle.

Solving Microsoft Edge Hsts Attack Warning Fix (2026)

Solving Microsoft Edge Hsts Attack Warning Fix (2026)

Struggling with Microsoft Edge HSTS Attack Warning? Get the ultimate 2026 fixes with step-by-step guides to resolve this frustrating security alert fast. Clear cache, reset settings, and stay secure!

Solving Microsoft Edge Core Isolation Not Turning On

Solving Microsoft Edge Core Isolation Not Turning On

Struggling with Microsoft Edge Core Isolation not turning on? Discover step-by-step fixes for Core Isolation issues, including BIOS tweaks, driver updates, and Windows repairs to boost your security instantly.