As we see greater interest from our clients in Teams, I’ve turned my attention to Office 365 groups administration, specifically on groups naming policy.
To create a naming policy for groups in your Office 365 tenant, you’ll need to use PowerShell.
I followed these instructions to view the current naming policy settings in my tenant by typing the following command:
$Setting = Get-AzureADDirectorySetting -Id (Get-AzureADDirectorySetting | where -Property DisplayName -Value “Group.Unified” -EQ).id
I expected to get some values, but I got this wonderful error instead:
So, where did I go from here?
I started to breakdown the command above, by running just the Get-AzureDirectorySetting.
It returned nothing. This tells me that there are no settings currently in place.
So, I had to configure the groups settings in my Office 365 tenant.
To do that, I could get the available template IDs by typing Get-AzureAdDirectorySettingTemplate or use the DisplayName value for “Group.Unified”
To Create a Naming Policy
I followed these steps to complete the creation of my naming policy:
- Create a new settings object for the Group.Unified template
- Configure the object to allow guests access (You could apply additional settings or leave this step out completely.)
- Set my settings to the new object
I applied the groups naming policy as seen in the below screenshot.
In OWA, I could see the new settings in effect. Be sure to use an account not in these administrator roles: Global Admin, Partner Tier 1 and 2 Support, User Account Admin, or Directory Writers to test the policy.
In summary, creating a naming policy can help users identify and categorize groups in the address book and enforces a consistent naming standard for Office 365 groups in your organization.
The naming policy is applied to groups created in Outlook, Microsoft Teams, SharePoint, Planner, Microsoft Stream, Dynamics 365 for Customer Engagement, Power BI, and many others.
Azure Active Directory (Azure AD) attributes are used in the creation of this policy. The supported attributes are [Department], [Company], [Office], [StateOrProvince], [CountryOrRegion], and [Title].
If you include these attributes in your naming policy, keep in mind that the total length of these prefixes and suffixes is restricted to 53 characters.
Thanks for reading!