Office 365 Groups - How to create groups with a unique display name?

%3CLINGO-SUB%20id%3D%22lingo-sub-106623%22%20slang%3D%22en-US%22%3EOffice%20365%20Groups%20-%20How%20to%20create%20groups%20with%20a%20unique%20display%20name%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-106623%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20it%20possible%20to%20create%20Office%20365%20groups%20created%20via%20Team%20Sites%2C%20Planner%2C%20Yammer%2C%20Stream%20and%20Teams%20with%20a%20unique%20display%20name%3F%20If%20yes%2C%20How%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20would%20like%20to%20prevent%20the%20creation%20of%20Office%20365%20groups%20with%20duplicate%20display%20names%20in%20the%20organization.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-106623%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-107195%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20-%20How%20to%20create%20groups%20with%20a%20unique%20display%20name%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-107195%22%20slang%3D%22en-US%22%3E%3CP%3EOr%20you%20can%20run%20the%20Get%2FSet-UnifiedGroup%20cmdlets%20in%20a%20script%20to%20periodically%20check%20for%20bad%20group%20names%20and%20then%20rename%20them.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-106920%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20-%20How%20to%20create%20groups%20with%20a%20unique%20display%20name%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-106920%22%20slang%3D%22en-US%22%3E%3CP%3EBut%20you%20can%20limit%20the%20creation%20process%20only%20to%20people%20that%20understand%20the%20need%20to%20use%20proper%20display%20names%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-106814%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20-%20How%20to%20create%20groups%20with%20a%20unique%20display%20name%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-106814%22%20slang%3D%22en-US%22%3ESimple%20answer%3A%20you%20cannot%20integrate%20a%20simple%20check%20in%20the%20creation%20process%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-106645%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20-%20How%20to%20create%20groups%20with%20a%20unique%20display%20name%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-106645%22%20slang%3D%22en-US%22%3E%3CP%3EUsers%20are%20free%20to%20create%20Office%20365%20groups%20%3CSPAN%3Evia%20Team%20Sites%2C%20Planner%2C%20Yammer%2C%20Stream%20and%20Teams%20using%20the%20corresponding%26nbsp%3Buser%20interface.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EHow%20can%20you%20integrate%20a%20simple%20check%20in%20the%20creation%20process%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-106640%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20-%20How%20to%20create%20groups%20with%20a%20unique%20display%20name%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-106640%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20display%20name%20is%20not%20a%20parameter%20that's%20enforced%20for%20uniqueness%2C%20so%20there%20is%20not%20setting%20you%20can%20configure.%20You%20can%20however%20specify%20it%20when%20creating%20the%20Group%20and%20change%20it%20post-creation%2C%20so%20simply%20integrate%20a%20simple%20check%20whether%20that%20name%20already%20exists%20in%20your%20processes.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1283535%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20-%20How%20to%20create%20groups%20with%20a%20unique%20display%20name%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1283535%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F14864%22%20target%3D%22_blank%22%3E%40Dominic%20Horne%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20avoid%20group%20and%20Teams%20duplicate%20names%20by%20implementing%20a%20self-service%20request%20for%20Teams.%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20solution%20also%20gives%20Admins%20more%20control%20over%20naming%20convention%20and%20blocked%20words.%20You%20can%20modify%20the%20script%20to%20your%20preferred%20naming%20conversion.%20Or%20simply%20use%20it%20as%20is.%20You%20would%20need%20a%20PowerApps%20form%20to%20capture%20the%20requests%2C%20a%20SharePoint%20site%20to%20store%20the%20requests%20and%20an%20internal%20email%20relay%20server%20to%20send%20request%20status%20to%20users%20(or%20use%20PowerAutomate%20send%20email%20feature).%20All%20that%20is%20described%20in%20this%20article.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Finsterswap.wordpress.com%2F2020%2F03%2F25%2Fhow-to-develop-microsoft-teams-self-service-app-to-fix-the-duplicate-display-name-limitation-in-the-teams-client%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Finsterswap.wordpress.com%2F2020%2F03%2F25%2Fhow-to-develop-microsoft-teams-self-service-app-to-fix-t...%3C%2FA%3E%3C%2FP%3E%3CP%3EFinally%2C%20you%20have%20to%20create%20a%20scheduled%20job%20for%20the%20script%20and%20let%20it%20run%20every%205%20to%2010%20mins%20interval%20to%20process%20user%20requests%20in%20the%20background.%20Mine%20runs%20every%205%20mins.%20Good%20luck!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Is it possible to create Office 365 groups created via Team Sites, Planner, Yammer, Stream and Teams with a unique display name? If yes, How?

 

We would like to prevent the creation of Office 365 groups with duplicate display names in the organization.

6 Replies
Highlighted

The display name is not a parameter that's enforced for uniqueness, so there is not setting you can configure. You can however specify it when creating the Group and change it post-creation, so simply integrate a simple check whether that name already exists in your processes. 

Highlighted

Users are free to create Office 365 groups via Team Sites, Planner, Yammer, Stream and Teams using the corresponding user interface.

 

How can you integrate a simple check in the creation process?

Highlighted
Simple answer: you cannot integrate a simple check in the creation process
Highlighted

But you can limit the creation process only to people that understand the need to use proper display names :)

Highlighted

Or you can run the Get/Set-UnifiedGroup cmdlets in a script to periodically check for bad group names and then rename them.

Highlighted

@Dominic Horne 

You can avoid group and Teams duplicate names by implementing a self-service request for Teams. 

This solution also gives Admins more control over naming convention and blocked words. You can modify the script to your preferred naming conversion. Or simply use it as is. You would need a PowerApps form to capture the requests, a SharePoint site to store the requests and an internal email relay server to send request status to users (or use PowerAutomate send email feature). All that is described in this article.

https://insterswap.wordpress.com/2020/03/25/how-to-develop-microsoft-teams-self-service-app-to-fix-t...

Finally, you have to create a scheduled job for the script and let it run every 5 to 10 mins interval to process user requests in the background. Mine runs every 5 mins. Good luck!