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 create a shared reminder list on iPhone

How to create a shared reminder list on iPhone

When you create a list on the Reminders app, you can share it with others so they can read it together, such as sharing among family members.

Guide to participating in Dynamax & Max battles in Pokemon Go

Guide to participating in Dynamax & Max battles in Pokemon Go

The exciting new Dynamax feature is here in Pokémon GO. Here's what you need to know about how to Dynamax and Max in Pokémon Go.

Instructions for changing Weibo account name

Instructions for changing Weibo account name

Weibo social network also has the same setting options as other social networking applications such as changing Weibo account password or changing account name to a new name you like.

Instructions for creating and using BAT files on Windows

Instructions for creating and using BAT files on Windows

Batch files are a way for computer users to get work done. They can automate everyday tasks, shorten the time it takes to do something, and turn a complex process into something anyone can operate.

Instructions for downloading Minecraft for free on iPhone

Instructions for downloading Minecraft for free on iPhone

With the instructions in the article you can download and install Minecraft for free on iPhone/iPad

Instructions to change the default PDF reader on Windows 10

Instructions to change the default PDF reader on Windows 10

There are many different ways to change the default PDF reader on Windows 10, helping you get the PDF reader on your computer as you like through PDF reading software or even reading PDF files using a browser.

How to convert video to GIF on iPhone

How to convert video to GIF on iPhone

The Shortcuts app on iPhone has a shortcut to convert videos to GIFs with very simple operations.

Step by step guide to creating and interpreting numerology charts by name

Step by step guide to creating and interpreting numerology charts by name

Numerology reveals exactly what's in your name. From destiny to soul path, here's how to calculate your numerology chart based on your name.

How to choose video caller in WhatsApp group

How to choose video caller in WhatsApp group

WhatsApp has been updated with a new feature to select video callers in groups, no need to make a call with all members in the group. Here is a guide to select video callers in WhatsApp groups.

How to use Meta AI chatbot on Messenger

How to use Meta AI chatbot on Messenger

Meta AI has been updated on Messenger for you to experience this chatbot, interact with the chatbot for any issue you care about.

Instructions for inserting stickers into photos on iPhone

Instructions for inserting stickers into photos on iPhone

If you have a personal photo that you want to cover some information or even a certain image, you can insert stickers into the photo on iPhone.

How to delete Google account

How to delete Google account

For some reason, you no longer want to use your current Google account, and want to completely delete it. So how can you permanently delete your Google account?

How to use ChatGPT on WhatsApp

How to use ChatGPT on WhatsApp

You can now chat with the official ChatGPT on WhatsApp without resorting to third-party chatbots.

How to search for files using Copilot on Windows 11

How to search for files using Copilot on Windows 11

On Windows 11 you can now use the Copilot app to find, open, and ask questions about files stored on your computer.

How to remove objects in photos on iOS 18

How to remove objects in photos on iOS 18

iPhone 15 and later after upgrading to iOS 18 are equipped with new Apple Intelligence technology, capable of removing objects in photos via the Clean Up tool.