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!

Sign up and earn $1000 a day ⋙

How To Access An Android Phone With A Broken Screen

How To Access An Android Phone With A Broken Screen

Dealing with a broken screen on your Android phone is a hassle. Although phone screens are pretty tough, one nasty drop can shatter them completely. Given that most people have a lot of irreplaceable content on their phones, it is

Find out how to find friends and family using online services

Find out how to find friends and family using online services

In today's world, where information is more accessible than ever before, finding long-lost friends or relatives has become much easier. Online services for finding people provide convenient and effective tools that allow you to restore lost connections.

IObit Uninstaller 13 - One Click to Uninstall All Unwanted Programs

IObit Uninstaller 13 - One Click to Uninstall  All Unwanted Programs

In the busy software utilities industry, the available uninstallation tools are often overshadowed by more glamorous alternatives. Nonetheless, an excellent way of removing programs on a PC is vital for optimal system performance and the elimination of unwanted applications.

Instructions for creating Moon phase trend

Instructions for creating Moon phase trend

Instructions for creating a Moon phase trend. The Moon trend is extremely popular on TikTok, creating an unprecedented fever. Through Moon phase will help you know the date

How to edit videos posted on YouTube without losing views

How to edit videos posted on YouTube without losing views

How to edit videos posted on YouTube without losing views, You forgot to blur sensitive content in videos posted on YouTube. Don't worry, here's how to adjust it

How to enable dark mode on TikTok

How to enable dark mode on TikTok

How to turn on dark mode on TikTok, How to turn on dark mode on TikTok is not difficult. The article will guide you in detail how to change the TikTok interface to black on Samsung

Shirt size chart - How to choose the most accurate shirt size

Shirt size chart - How to choose the most accurate shirt size

Shirt size chart - How to choose the most accurate shirt size, What is the shirt size chart? Shirt size means only the size and size of the shirt or pants. Shirt size varies according to direction

Instructions for drawing prizes to receive Lucky Money on ZaloPay

Instructions for drawing prizes to receive Lucky Money on ZaloPay

Instructions for drawing prizes to receive Lucky Money on ZaloPay. Recently, Zalo has launched the program "Amazing lucky money, Happy Spring Luck" taking place from January 29, 2021 to

How to view and recover Microsoft Outlook password

How to view and recover Microsoft Outlook password

How to view and recover Microsoft Outlook password, How to view Outlook password on computer is not difficult. This article will guide you how to view and recover Outlook password

Instructions for creating and searching for draft posts on Facebook

Instructions for creating and searching for draft posts on Facebook

Instructions for creating and searching for draft articles on Facebook. Currently, we can save articles that we have created but have not yet posted on Facebook. Here, WebTech360 invites

How to set up LibreOffice Writer to work like Microsoft Word

How to set up LibreOffice Writer to work like Microsoft Word

How to set up LibreOffice Writer to work like Microsoft Word, If you're planning to switch from Microsoft Word to LibreOffice Writer but want a similar experience

Instructions for turning off saving videos on TikTok are extremely simple

Instructions for turning off saving videos on TikTok are extremely simple

Instructions for turning off saving videos on TikTok are extremely simple, to help people block others from downloading and saving their videos simply and easily. So today, WebTech360

Instructions for creating genealogical and organizational charts on Google Sheets

Instructions for creating genealogical and organizational charts on Google Sheets

Instructions for creating genealogical charts and organizing them on Google Sheets. Google Sheets is an online office application that helps us easily edit online spreadsheets,

How to import and manage multiple email accounts in Gmail

How to import and manage multiple email accounts in Gmail

How to import and manage multiple email accounts in Gmail, Want to manage all emails in Gmail? Let's learn how to manage and add multiple accounts with WebTech360

Instructions for using Photoshop filters for beginners

Instructions for using Photoshop filters for beginners

Instructions for using Photoshop filters for beginners, Each filter in Photoshop has its own algorithm and uses. Below are instructions for using the internal filter

How to create automatic clicks on Macrorify

How to create automatic clicks on Macrorify

How to create automatic clicks on Macrorify, Macrorify helps you create automatic click tasks and detect images. In this article, let's find out how with WebTech360

Instructions for logging out of Instagram account remotely

Instructions for logging out of Instagram account remotely

Instructions for remotely logging out of your Instagram account. If you don't know how to remotely log out of your Instagram account, today WebTech360 would like to introduce

Instructions for remotely logging out of Tik Tok account

Instructions for remotely logging out of Tik Tok account

Instructions for remotely logging out of Tik Tok account. To help people quickly log out of Tik Tok accounts from other devices, today WebTech360

Instructions for blurring photos on B612

Instructions for blurring photos on B612

Instructions for blurring photos on B612. Recently, the B612 application has updated the image blur effect. Next, WebTech360 will introduce the article Instructions for blurring photos

How to fix the error of printing blank pages in Microsoft Excel

How to fix the error of printing blank pages in Microsoft Excel

How to fix the error of printing blank pages in Microsoft Excel. Why do some Excel documents not display data or contain blank pages when printed? Below are the reasons