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 ⋙

Leave a Comment

Instructions for creating green ticks for Facebook

Instructions for creating green ticks for Facebook

Step-by-step guide on how to create a green tick for Facebook. Learn how to verify your account and gain credibility with the green verification mark.

How to download Torrent files on Mozilla Firefox

How to download Torrent files on Mozilla Firefox

Learn how to download torrent files directly using the Firefox web browser with the Torrent Tornado add-on. Simple steps for effective torrent downloading.

How To View Someone Else’s TikTok Followers

How To View Someone Else’s TikTok Followers

Learn how to view someone else’s TikTok followers, both on public and private accounts. Discover effective methods to access follower counts and improve your TikTok strategy.

Instructions to login to Facebook by Email

Instructions to login to Facebook by Email

Learn how to login to Facebook using your email, phone number, or even QR Code authentication without entering a password.

How To Stop An Echo In Parsec

How To Stop An Echo In Parsec

Learn how to stop echo during your Parsec streaming sessions with effective solutions. Echo is a common issue that disrupts communication in games, and we provide proven methods to eliminate it.

How to change your avatar and cover photo Zalo

How to change your avatar and cover photo Zalo

Discover how to change your avatar and cover photo on Zalo to express your personality. Follow our easy guide and optimize your Zalo profile image.

How to mark close friends on Zalo

How to mark close friends on Zalo

Learn how to manage your relationships on Zalo by marking close friends, similar to Instagram. This feature allows easy access to frequently contacted individuals.

Send screenshots super fast via Viber on Windows

Send screenshots super fast via Viber on Windows

Learn how to send screenshots via Viber quickly and without saving them. This guide provides step-by-step instructions to enhance your messaging experience.

Instructions to restore deleted messages on Zalo

Instructions to restore deleted messages on Zalo

Learn how to easily restore deleted messages on Zalo with our step-by-step instructions. Quickly recover your important chats on this popular messaging app.

Instructions to install background music for your personal page on Zalo

Instructions to install background music for your personal page on Zalo

Discover how to easily add background music to your personal Zalo page with our comprehensive guide on using Zalo for Android and iOS devices.

How To Find The Last Raider In Minecraft

How To Find The Last Raider In Minecraft

If you’ve ever found yourself at the end of a Minecraft raid, searching for the last raider to eliminate, you’re not alone. Many players have faced this challenge.

How to completely remove Coc Coc browser on your computer

How to completely remove Coc Coc browser on your computer

Learn how to uninstall Coc Coc browser completely from your computer, ensuring all data is removed. Follow these simple steps for an effective uninstallation.

How to use the Toshiba AW-A800SV washing machine control panel

How to use the Toshiba AW-A800SV washing machine control panel

Discover how to effectively use the Toshiba AW-A800SV washing machine control panel with our detailed guide!

How to use the emergency feature on Samsung Galaxy Watch and other smartwatches

How to use the emergency feature on Samsung Galaxy Watch and other smartwatches

Discover how to effectively use emergency features on Samsung Galaxy Watch and other smartwatches, including SOS alerts, fall detection, and health records.

Share personal QR code on Zalo

Share personal QR code on Zalo

Discover how to effectively <strong>share QR code on Zalo</strong>. QR codes enhance connectivity, enabling easy friend requests and more on Zalo.

Sign up and Earn ⋙
Sign up and Earn ⋙