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 Boil Broccoli

How to Boil Broccoli

Master how to boil broccoli perfectly every time with this step-by-step guide. Learn exact timing and techniques for tender, vibrant, nutrient-rich results.

How to Dark Mode on Google

How to Dark Mode on Google

Learn how to dark mode on Google across Search, Chrome and apps to cut eye strain at night. This guide shows the exact settings to enable Google dark theme in under a minute.

How to Add Font to Canva

How to Add Font to Canva

Learn exactly how to add font to Canva with this step-by-step guide. Upload custom fonts through Brand Kit to use them across all your designs in minutes.

How to Use Skype

How to Use Skype

How to Use Skype for free video calls, messaging, and screen sharing. Follow this complete guide to install the app, set up your account, and start communicating in minutes.

How to Clear Google History

How to Clear Google History

Learn how to clear Google history quickly to protect your privacy. This step-by-step guide shows you how to delete search activity from your Google account on any device.

How to Delete History on Chromebook

How to Delete History on Chromebook

Learn exactly how to delete history on Chromebook to protect your privacy. Follow these precise steps to clear browsing data, cookies, and cached files on your device.

How to Find a Server on Discord

How to Find a Server on Discord

Learn how to find a server on Discord with this clear walkthrough of the built-in Discovery tool and other reliable methods. Join active communities fast.

How to Change Search Engine in Chrome

How to Change Search Engine in Chrome

How to Change Search Engine in Chrome takes just a few clicks in Settings. Switch your default provider to Google, Bing, DuckDuckGo or another option and improve search results instantly.

How to Cast Netflix to Chromecast

How to Cast Netflix to Chromecast

Learn exactly how to cast Netflix to Chromecast from your phone or computer. Follow these steps to stream movies and shows to your TV in minutes.

How to Set Google as Your Homepage on Chrome

How to Set Google as Your Homepage on Chrome

Learn exactly how to set Google as your homepage on Chrome in under a minute. Follow the precise steps in Chrome Settings to make google.com load when you click the home button.