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

How to group layers in Canva

How to group layers in Canva

Grouping layers in Canva makes your design more professional and also makes it easier to edit and work with your design.

Instructions for turning on communication safety to protect children using iPhone

Instructions for turning on communication safety to protect children using iPhone

Safe Communication will blur sensitive images received on your child's iPhone via Messages, AirDrop. Here's how to use Safe Communication on iPhone.

DTCL Season 14 Marksman Squad, DTCL Season 14 Marksman Build

DTCL Season 14 Marksman Squad, DTCL Season 14 Marksman Build

Marksmen return in TFT season 14 and are still a powerful class with outstanding long-range physical damage.

How to fix sound errors on Windows 10, fix Win 10 sound errors

How to fix sound errors on Windows 10, fix Win 10 sound errors

Some computers after upgrading to Windows 10 version have the problem of losing sound. We can check the audio device connections to the computer, or adjust the sound settings on the operating system.

How to use sounds in ScratchJR

How to use sounds in ScratchJR

In this article students will learn how to add sounds and use sounds in ScratchJR for each of their characters.

Instructions for learning English on ScratchJR

Instructions for learning English on ScratchJR

ScratchJR helps students create command-based programs for characters, and you can use it to build a foreign language learning program on ScratchJR.

How to create and manage iMessage iPhone chat groups

How to create and manage iMessage iPhone chat groups

The iPhone iMessage group chat feature helps us text and chat more easily with many people, instead of sending individual messages.

Instructions for setting nicknames for friends accounts on TikTok

Instructions for setting nicknames for friends accounts on TikTok

TikTok has an option to set a nickname for your friends' accounts to choose a name that is easier to remember in your friend list. This article will guide you to set a nickname for your friends' accounts on TikTok.

Guide to improving services and search in Edge

Guide to improving services and search in Edge

Search and service improvement is a setting in Microsoft Edge that lets the company use your web search data to improve your search and web experience.

Instructions to change Weibo password on phone, computer

Instructions to change Weibo password on phone, computer

Weibo accounts also have options to edit the account, such as changing the Weibo password. Here are instructions for changing the Weibo password.

How to write stylish text on Claude AI

How to write stylish text on Claude AI

Claude AI now allows you to choose from a variety of text writing styles so users get the text they need.

How to recover deleted messages on iPhone, recover iPhone messages fastest

How to recover deleted messages on iPhone, recover iPhone messages fastest

There are several ways to recover deleted messages on iPhone, using iCloud, using iTunes, and using third-party apps.

Instructions to collapse note content on iOS 18

Instructions to collapse note content on iOS 18

For notes with a lot of content and many topics, the option to collapse the note content on iOS 18 helps you observe the content more easily.

Instructions for reading feedback on ChatGPT

Instructions for reading feedback on ChatGPT

After supporting you to chat by voice on ChatGPT, this AI tool has also updated the option to read responses with many supported languages.

Instructions for taking a scrolling screenshot of an Android device to capture the entire web page

Instructions for taking a scrolling screenshot of an Android device to capture the entire web page

Instead of “bombarding” your friends' messages with dozens of screenshots, you can take a scrolling screenshot and send it.