Skip to content

How to Create a Teams and Microsoft 365 Groups Naming Policy

Set up a Microsoft 365 Groups and Teams naming policy in Microsoft Entra: prefix and suffix rules, attribute tokens, blocked words, licensing, and how to test it safely.

MGMCSA Guru Team November 19, 2026 8 min read
Photographic illustration for How to Create a Teams and Microsoft 365 Groups Naming Policy: laptop showing a video meeting and chat on a modern desk

Open self-service team creation is fine until the names get out of hand. You end up with three teams called “Marketing,” a dozen named “Project” or “Test,” and no way to tell at a glance which department owns what. A naming policy fixes that by enforcing a convention at creation time, so every new team and group follows the same shape automatically.

Here’s the thing people miss: there’s no “Teams naming policy” as a separate object. Creating a team creates a Microsoft 365 group behind it, so the naming policy lives at the group level in Microsoft Entra. Set it once and it governs names across Teams, Outlook, SharePoint, Planner, and Viva Engage — everywhere those groups get created.

This guide covers what the policy can do (prefixes, suffixes, attribute tokens, and a blocked words list), the licensing requirement that catches people out, how to configure it in the portal and in PowerShell, and how to test it without generating a wave of confused users.

What a naming policy can enforce

A Microsoft 365 Groups naming policy has two parts that work together.

Prefix-suffix naming. You define text that’s automatically added to the front and/or back of every group name. Each segment can be either:

  • A fixed string — literal text like GRP- or -EU.
  • An attribute token — a placeholder filled from the creating user’s directory attributes, such as [Department], [Company], [Office], or [Title].

So a policy of [Department]-[GroupName] means a team created by someone in Finance becomes Finance-Budget Review automatically, without the creator typing the prefix.

Custom blocked words. A list of terms users aren’t allowed to put in a group name. Try to create a team with a blocked word and it’s rejected. This is how you stop people naming teams CEO, Payroll, HR, or anything else you want reserved.

The two parts of a naming policy

Prefix / suffix (fixed string) Adds literal text, e.g. GRP- at the front or -INT at the end
Prefix / suffix (attribute token) Adds a directory value, e.g. [Department] or [Office], filled from the creator's profile
Custom blocked words Rejects names containing any term on your list (e.g. CEO, Payroll)

Licensing: the requirement people forget

Before you build anything, confirm licensing. A group naming policy requires Microsoft Entra ID P1 (or higher), and the requirement applies to the members affected by the policy — the users creating or editing groups — not just the admin who sets it up.

This catches people out because the policy will look like it configured fine, then behave inconsistently for users who lack the license. Don’t design governance around a naming policy until you’ve confirmed the right Entra ID licensing covers the people it will apply to.

Step 1: Plan the convention before you configure

Decide the convention on paper first. A policy you change three times after launch confuses everyone, so get the shape right before touching the portal.

A few practical pointers:

  • Keep prefixes short. They appear in front of every name, in every list, forever. GRP- is fine; a long fixed prefix wastes space.
  • Use attribute tokens only if the attributes are populated. [Department] is useless if half your users have a blank department field. Check your directory data first, or the token resolves to nothing.
  • Don’t over-block. A blocked words list that’s too aggressive rejects legitimate names and generates tickets. Block the genuinely reserved or sensitive terms, not every word that might theoretically be misused.

Before you create the naming policy

  • You've confirmed Microsoft Entra ID P1 covers the users who create teams/groups
  • You've decided the prefix and/or suffix (fixed strings and/or attribute tokens)
  • You've checked the directory attributes you plan to use are actually populated
  • You've drafted a focused blocked words list of genuinely reserved terms
  • You have a test account (non-admin) to validate the policy before rollout

Step 2: Configure the policy in Microsoft Entra

The portal is the most straightforward way to set this up. In the Microsoft Entra admin center, go to Groups > All groups > Naming policy, then the Group naming policy tab. There you set the prefix and suffix (choosing fixed strings or attributes for each segment) and, on the blocked words tab, upload or enter your blocked words list.

The portal previews how a sample name will render with your prefix and suffix applied, which is worth using before you save — it catches an attribute token you expected to fill but didn’t.

Step 3: Configure it with PowerShell (optional)

If you prefer scripting or are managing this alongside other group settings, the naming policy lives in the directory settings object based on the Group.Unified template. You set the PrefixSuffixNamingRequirement and CustomBlockedWordsList values.

# Microsoft Graph PowerShell SDK
Connect-MgGraph -Scopes "Directory.ReadWrite.All"

# Get the existing Group.Unified directory setting
$settings = Get-MgDirectorySetting |
  Where-Object { $_.DisplayName -eq "Group.Unified" }

# Set prefix-suffix: department attribute + the group name + a fixed region suffix
($settings.Values | Where-Object { $_.Name -eq "PrefixSuffixNamingRequirement" }).Value = "[Department]-[GroupName]-EU"

# Block reserved/sensitive terms (comma-separated, no spaces around commas)
($settings.Values | Where-Object { $_.Name -eq "CustomBlockedWordsList" }).Value = "CEO,Payroll,HR,Board"

Update-MgDirectorySetting -DirectorySettingId $settings.Id `
  -BodyParameter @{ Values = $settings.Values }

If your tenant doesn’t yet have a Group.Unified directory setting object, create it from the template first (with New-MgDirectorySetting) before setting these values, rather than assuming the object already exists.

$settings = Get-MgDirectorySetting | Where-Object { $_.DisplayName -eq "Group.Unified" }
$settings.Values | Where-Object { $_.Name -in "PrefixSuffixNamingRequirement","CustomBlockedWordsList" }

Step 4: Test before you roll out

Never announce a naming policy you haven’t tested with a real, non-admin account. The two things that go wrong are unexpected attribute resolution and over-aggressive blocked words.

  • Create a team as a normal user and confirm the prefix and suffix render the way you expect, including any attribute tokens.
  • Try a blocked word and confirm the creation is rejected with a sensible message.
  • Check an empty attribute. Create as a user whose Department is blank and see what the name becomes — this is where [Department] policies surprise people.
  • Allow for propagation. Policy changes don’t always apply instantly. Give it time before deciding a setting didn’t work.

Where naming fits in the bigger governance picture

A naming policy solves what teams are called. It doesn’t solve who can create them or what happens to abandoned ones. Those are separate controls that pair naturally with naming:

Naming policy vs the controls around it

Naming policy Enforces consistent names at creation — prefixes, suffixes, blocked words
Creation restriction Limits who can create teams/groups (a security group of allowed creators)
Expiration policy Retires inactive groups after a set lifetime unless an owner renews

If sprawl is the real problem, naming alone won’t fix it — you also want to control who can create teams in the first place. That’s covered in how to control who can create teams in Microsoft Teams, and the broader strategy in Microsoft Teams governance best practices. Together, restricting creation, enforcing naming, and expiring dead groups keep the directory tidy instead of fighting sprawl after the fact.

Wrapping up

A Teams naming policy is really a Microsoft 365 Groups naming policy set in Microsoft Entra, and it governs names everywhere groups are created — Teams included. Use a short fixed prefix or an attribute token like [Department] to make ownership obvious, and a focused blocked words list to reserve sensitive terms. Confirm Entra ID P1 covers the users it applies to before you build on it, because that requirement is the one people overlook.

Keep the convention simple, test it with a non-admin account (especially the empty-attribute case), and remember it won’t rename anything that already exists. Pair it with a creation restriction and an expiration policy and you’ve got real governance rather than a naming rule sitting on top of chaos. Start with controlling who can create teams, and browse more in the Microsoft Teams guides.

Frequently asked questions

What license do I need for a Microsoft 365 Groups naming policy?

A group naming policy requires Microsoft Entra ID P1 (or higher) for the members affected by the policy. The licensing requirement applies to the users who create or edit groups, not just admins. Confirm your licensing before building governance around a naming policy, because without the right license the policy isn't supported for those users.

Does the naming policy apply to Teams as well as Outlook groups?

Yes. The policy applies to Microsoft 365 groups created across the workloads that use them — Teams, Outlook, SharePoint, Planner, and Viva Engage. Because creating a team creates a Microsoft 365 group behind it, the naming policy shapes team names too. It's one policy that governs naming everywhere groups are created.

Can I use the department or another attribute in the name automatically?

Yes. The prefix-suffix policy supports attribute tokens like [Department], [Company], [Office], or [Title], which are filled in from the creating user's directory attributes. So a team created by someone in Finance can automatically get a 'Finance' segment. Just make sure the attributes are actually populated, or the token resolves to nothing useful.

Are administrators exempt from the naming policy?

Certain administrator roles can be exempted so they can create groups that don't follow the convention — useful for service or special-purpose groups. That's convenient, but it also means an exempt admin can accidentally create an off-standard name. Apply your own discipline when creating groups as an exempt admin.

What does the blocked words list actually do?

The custom blocked words list rejects group names that contain any of the terms you specify, so users can't create a team called something reserved or inappropriate — for example CEO, Payroll, or HR. It's an exact-match block on the words you list. Keep the list focused; an overly broad list generates confusing rejections for legitimate names.

Will a naming policy rename existing groups?

No. A naming policy applies to groups created or edited after it's in place; it doesn't retroactively rename existing groups. Existing teams keep their current names until someone edits them, at which point the policy applies. If you want consistency across old groups, you rename them separately.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.