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

How to Fix Microsoft Edge Unable to Connect to Proxy Server

How to Fix Microsoft Edge Unable to Connect to Proxy Server

Struggling with Microsoft Edge "Unable to Connect to Proxy Server" error? Discover proven, step-by-step fixes to get back online fast. No tech skills needed – resolve it in minutes!

How to Fix Microsoft Edge Login Screen Background Blur

How to Fix Microsoft Edge Login Screen Background Blur

Tired of the blurry Microsoft Edge login screen background? Get step-by-step fixes to restore sharp, clear visuals on your Windows PC. Proven methods for the latest Edge versions.

How to Fix Microsoft Edge Update Stuck at 0% or 100%

How to Fix Microsoft Edge Update Stuck at 0% or 100%

Frustrated with Microsoft Edge update stuck at 0% or 100%? Discover simple, effective fixes to resolve the issue fast and update smoothly without losing data. Step-by-step guide for Windows users.

How to Fix Microsoft Edge Clock Ahead Error

How to Fix Microsoft Edge Clock Ahead Error

Tired of the frustrating Microsoft Edge "Clock Ahead" Error blocking your sync? Discover step-by-step fixes, from clock sync to Edge reset, for instant relief and smooth browsing. Updated with latest solutions!

How to Install Microsoft Edge on Linux (Ubuntu & Fedora)

How to Install Microsoft Edge on Linux (Ubuntu & Fedora)

Discover how to install Microsoft Edge on Linux effortlessly! Step-by-step guide for Ubuntu & Fedora users. Get Chromium power, speed, and security on your distro now. Official methods, troubleshooting tips included.

How to Play the Microsoft Edge Surf Game Without Internet

How to Play the Microsoft Edge Surf Game Without Internet

Dive into endless fun with our ultimate guide on how to play the Microsoft Edge Surf game without internet. Step-by-step instructions, pro tips, and secrets to master the waves completely offline—no connection required!

How to Fix Microsoft Edge Profile Error on Windows 11

How to Fix Microsoft Edge Profile Error on Windows 11

Tired of the frustrating Microsoft Edge 'Profile Error' on Windows 11? Discover simple, step-by-step fixes that work on the latest updates. Restore smooth browsing in minutes—no tech expertise needed!

Troubleshooting Microsoft Edge Context Menu Slow Error

Troubleshooting Microsoft Edge Context Menu Slow Error

Tired of Microsoft Edge context menu slow delays ruining your workflow? Follow our proven, step-by-step troubleshooting guide to eliminate right-click lag and restore lightning-fast performance instantly.

How to Fix Microsoft Edge Startup Boost High Disk Fix

How to Fix Microsoft Edge Startup Boost High Disk Fix

Tired of Microsoft Edge Startup Boost causing high disk usage? Discover step-by-step fixes to disable it, reclaim your PC speed, and prevent future issues. Quick, easy, and effective!

How to Fix Microsoft Edge Error Code SBOX_FATAL_MEMORY_EXCEEDED

How to Fix Microsoft Edge Error Code SBOX_FATAL_MEMORY_EXCEEDED

Tired of Microsoft Edge crashing with Error Code SBOX_FATAL_MEMORY_EXCEEDED? Discover proven, step-by-step fixes for this sandbox memory issue. Restore smooth browsing in minutes—no tech expertise needed!

How to Fix Microsoft Edge Cant Connect to the Proxy Server

How to Fix Microsoft Edge Cant Connect to the Proxy Server

Tired of Microsoft Edge "Can't Connect to the Proxy Server" error blocking your browsing? Discover proven, step-by-step fixes to resolve it quickly—no tech skills needed. Latest solutions for seamless surfing!

How to Use Microsoft Edge Group Tabs to Stay Organized

How to Use Microsoft Edge Group Tabs to Stay Organized

Master Microsoft Edge Group Tabs with this step-by-step guide. Learn to create, manage, and customize groups for ultimate tab organization and productivity boost.

How to Fix Microsoft Edge Error Code RESULT_CODE_KILLED_BAD_MESSAGE

How to Fix Microsoft Edge Error Code RESULT_CODE_KILLED_BAD_MESSAGE

Struggling with Microsoft Edge Error Code RESULT_CODE_KILLED_BAD_MESSAGE? Discover proven, step-by-step fixes to stop crashes and get back to browsing smoothly. Updated with the latest solutions for optimal performance.

How to Enable Sleeping Tabs in Microsoft Edge to Save RAM

How to Enable Sleeping Tabs in Microsoft Edge to Save RAM

Discover how to enable Sleeping Tabs in Microsoft Edge to dramatically save RAM and boost performance. Step-by-step guide, tips, and tweaks for maximum efficiency.

How to Fix Microsoft Edge Secure Network Encountered an Error

How to Fix Microsoft Edge Secure Network Encountered an Error

Tired of the frustrating Microsoft Edge Secure Network Error blocking your browsing? Follow our proven, step-by-step guide to fix it quickly—no tech expertise required. Get back online fast with the latest solutions.