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 to unpin default folders Windows 11

Instructions to unpin default folders Windows 11

Windows 11 File Explorer includes a number of default folders pinned to the sidebar. If you do not need to use them, you can completely unpin the default folders in File Explorer.

How to enable Notification Cooldown on Android 16

How to enable Notification Cooldown on Android 16

Notification Cooldown Android will gradually reduce the volume and vibration intensity of notifications when you receive too many notifications from the same app at once.

TFT Frost Team Season 12, TFT Frost Build

TFT Frost Team Season 12, TFT Frost Build

DTCL season 12's Iceborn is the most special race and its mechanism is somewhat similar to Sub-Zero in Mortal Kombat.

ScratchJR Maze Game Design Tutorial (Final Post)

ScratchJR Maze Game Design Tutorial (Final Post)

For projects or games in ScratchJR, the start and end screens play an important role in enhancing the completeness of the product.

Instructions for adjusting the size of the Windows 11 scroll bar

Instructions for adjusting the size of the Windows 11 scroll bar

The scroll bar on Windows 11 is compact in size, but many people want to change this size, enlarge the scroll bar to make it easier to see when needed.

How to collaborate on notes in FaceTime

How to collaborate on notes in FaceTime

FaceTime iOS 17 has a collaboration feature in notes to type notes together and track changes as someone types.

Windows 11 camera resolution configuration guide

Windows 11 camera resolution configuration guide

With Windows 11 build 27758 , Microsoft added advanced camera options so users can adjust basic camera configuration settings.

How to annotate screenshots using Snipping Tool

How to annotate screenshots using Snipping Tool

Snipping Tool also provides built-in tools for annotating computer screenshots. This tool allows you to mark and highlight important parts of the screenshot to convey the message you want.

How to view IP address on computer, view Win 10 IP address

How to view IP address on computer, view Win 10 IP address

Checking your computer's IP address will be necessary in many cases. If you want to know what your computer's IP address is, read this guide to see your computer's IP.

Instructions for adjusting vibration mode on Xiaomi phones

Instructions for adjusting vibration mode on Xiaomi phones

Vibration mode on Xiaomi phones can be used in silent mode so you can easily receive new messages, calls or application notifications.

Instructions on how to upgrade RAM on PC and laptop

Instructions on how to upgrade RAM on PC and laptop

Installing more RAM is the most effective solution to speed up your computer. Even if your computer is new, after only a few years of use, you will have to install more RAM to ensure better speed. In addition, new operating systems also require more memory. When a computer does not have enough RAM, it will exchange data streams with the hard drive, and that is the reason why your system runs slowly.

Instructions for canceling Gemini Advanced subscription

Instructions for canceling Gemini Advanced subscription

Gemini Advanced is a paid subscription from Google that gives you access to more advanced AI models. After signing up for the Gemini Advanced plan, if you no longer need to use it, you should cancel the Gemini Advanced plan, according to the article below.

Instructions for installing Windows 11 on a virtual machine, installing Windows 11 on VMware

Instructions for installing Windows 11 on a virtual machine, installing Windows 11 on VMware

In this article, WebTech360 will guide you how to install and experience Windows 11 on VMWare virtual machine.

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.