Defining good governance for your Office 365 groups

Reading Time: 3 minutes

The groups are one of the most important pillars of Office 365, considering this for a company is vital to define a good governance in order to better manage them.
The tenant admin has an important role to play in this, in fact through Powershell it is possible to set some important attributes at the Azure Active Directory level.
Now imagine the bad scenario where in a company every user is able to create a new Microsoft Teams, this can generate an uncontrollable situation with many Teams per user.
We can consider as a good practice to allow the Office 365 groups creation only for a specific group which could be an “Admin Group” namely a group composed only by admin users.
This open a scenario, for example, where a user requests a creation of a Teams, SharePoint team site or communication site with an internal workflow where an admin can manage the requests keeping under control the situation.
The Azure Active Directory offers several attributes who come to our aid:

Azure Active Directory

As you can see from the picture I defined in my Office 365 tenant that, only a specific group is able to create new Office 365 groups, in fact, the attributes EnableGroupCreation is false and the GroupCreationAllowedGroupdId contains the Guid of a specific group of admins.
The first step to do in order to take control of this, is installing the official Powershell cmdlets of Microsoft to interact with Azure Active Directory so take a look in the Powershell Gallery, if you have windows 10 you can open an instance of Powershell like admin and executing the command:

Once the module is installed, you can start to play with it, just in case you have not specified a setting in you Azure Active Directory you can follow the procedure below to assign a setting from a template and then set up the attributes as you prefer:

  1. Create an Office 365 Group here in your tenant https://portal.office.com/adminportal/home#/groups
    Office 365 Group Creation | De Luca Giuliano Blog
  2. If you don’t have existing setting for the unified group on your Azure Active Directory run the script below:
  3. If you already have the setting for the unified group run this other script:

The final result is that a normal user is not able to create a new Teams for example:

Teams creation denied for a normal user | De Luca Giuliano | Blog
Teams creation denied for a normal user

Summarizing only the users which are in the admin group can create new Office 365 group.