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

Guide to managing Microsoft account registration

Guide to managing Microsoft account registration

When you sign up for a Microsoft subscription with recurring billing, you can change how you pay at any time. You can also cancel or turn off recurring billing for a Microsoft subscription when you no longer need it.

How to use Android Picture-in-Picture mode

How to use Android Picture-in-Picture mode

Android Picture-in-Picture mode will help you shrink the video and watch it in picture-in-picture mode, watching the video in another interface so you can do other things.

How to create favorite album on Windows 11

How to create favorite album on Windows 11

The Favorites Album feature is built into the Windows 11 Photos app, saving your most favorite images.

Instructions to quickly delete large folders on Windows 11

Instructions to quickly delete large folders on Windows 11

When deleting large folders on Windows 11, the deletion speed will be slower. If you feel that this deletion process is too time-consuming, the article below will help you with additional methods to delete large folders on Windows 11.

How to watch Apple Music Replay 2024

How to watch Apple Music Replay 2024

Starting with iOS 18.1, users will be able to watch Apple Music Replay 2024 in the Music app without having to visit the website.

How to cancel iCloud + subscription on iPhone

How to cancel iCloud + subscription on iPhone

After a period of use, if you no longer want to subscribe to iCloud+, you can completely cancel your iCloud+ subscription. Below are instructions for canceling your iCloud+ subscription on iPhone.

Instructions for activating Click to Do Windows 11

Instructions for activating Click to Do Windows 11

Click to Do Windows 11 helps you complete tasks more efficiently by recognizing text and images you can interact with on the screen.

Instructions for using Ambient Music to listen to music according to your mood on iPhone

Instructions for using Ambient Music to listen to music according to your mood on iPhone

Ambient Music will compile playlists according to each state and users can listen to music according to their mood, such as relaxation or sleep playlists.

How to turn off Apple Intelligence on iPhone

How to turn off Apple Intelligence on iPhone

After the initial excitement about using Apple Intelligence died down, many people couldn't get past the frustration and inconsistency of many of its features.

Instructions for converting images to text on Copilot

Instructions for converting images to text on Copilot

Users can also convert photos to text, describe images in text on Copilot. With the photo description content on Copilot, you have more suggestions to use for other purposes.

Instructions for rewriting Notepad text using AI

Instructions for rewriting Notepad text using AI

With AI integration in Notepad on Windows 11, you can use the rewrite tool to change the style and length of your notes, as well as rewrite selected text.

Latest Pokemon Unite Codes and Code Entry Instructions

Latest Pokemon Unite Codes and Code Entry Instructions

If you are looking for the latest codes for the game Pokemon Unite then this article is for you.

How to disable Copilot Alt + Spacebar shortcut on Windows 11

How to disable Copilot Alt + Spacebar shortcut on Windows 11

For many people who do not need to use Copilot on Windows or the voice chat feature, the Alt + Spacebar shortcut can be confusing and should be disabled.

How to Find YouTube Videos on Gemini

How to Find YouTube Videos on Gemini

You can find YouTube videos on Gemini by keywording the video content you need. Immediately, we get YouTube videos from Gemini.

How to create AR Emoji on Samsung phones

How to create AR Emoji on Samsung phones

AR Emoji on Samsung phones will record your facial expressions as cartoon characters, then convert them into emojis for you to use on your phone.