Microsoft Teams workspaces · Deploy
Deploy group expiration and naming policies
A naming policy and an activity-based expiration policy, piloted on a subset of groups before the whole tenant.
- Duration
- 3 to 4 weeks
- Effort
- About 3 to 5 person-days
- Complexity
- Medium
- Beyond E5
- Nothing beyond Microsoft 365 E5
On this page
Overview
A Microsoft Entra naming policy adds prefixes or suffixes to Microsoft 365 group names and blocks chosen words, across Teams, Outlook, SharePoint and Planner. An expiration policy sets a lifetime for groups; groups with activity in Outlook, SharePoint, Teams or Viva Engage renew automatically, owners of quiet ones are asked to renew, and groups that aren't renewed are deleted and can be restored within 30 days. There's one expiration policy per tenant, applied to all groups or selected ones.
Technically, you define the prefix and suffix and blocked words in Microsoft Entra ID, and set the expiration policy's lifetime, the contact for groups with no owner, and its scope, starting with selected groups.
You'll end up with: New groups named by the convention, and an expiration policy covering all groups after a pilot.
If you skip it: Without the policies, names become meaningless and unused teams accumulate, adding clutter for people and stale content for search and Copilot.
Before you start
The path to this playbook
- Decide if a Team is the right tool
- Deploy group expiration and naming policies (you are here)
- Decide if a Team is the right tool: A clear rule for when to create a Team, a SharePoint site or a group chat, with naming, owners and guest access settled.
- Agree the convention and lifetime
How to do it
Bring the naming convention and lifetime from Decide if a Team is the right tool. Use user attributes in names only if every user has them filled in.
- Tell owners first
How to do it
Announce the policies using the messages from Plan adoption for Teams governance.
Pilot to production
3 phasesApply the naming policy1 week
Configure the prefix, suffix and blocked words, test by creating groups from Teams and Outlook, then announce.
Move on when Test groups created from Teams and Outlook get the expected names.
How to do it
The policy applies to new groups and when existing groups are edited, not immediately to all existing ones. Some admin roles are exempt. Prefixes and suffixes can be fixed text or user attributes such as department.
Watch out for (1)
If you: Use a user attribute that isn't filled in for everyone
What tends to happen: Group names come out with gaps or odd values, and people rename them by hand
A better approach:Use attributes with values for every user, or fixed text
Pilot expiration2 weeks
Apply the expiration policy to selected groups, and watch renewal emails, automatic renewals and any deletions.
Move on when Owners of pilot groups understood the emails, and no active group was deleted.
How to do it
Groups with activity renew automatically. Owners of quiet groups get emails, and an unrenewed group is deleted and can be restored within 30 days. Set a contact for groups with no owner.
Watch out for (1)
If you: Leave the contact for ownerless groups empty
What tends to happen: Groups whose owners left expire with nobody told, and content people still use is deleted
A better approach:Set a monitored mailbox as the contact for groups with no owner
Extend to all groups1 week
Apply the policy to all groups, and give the service desk the restore process.
Move on when All groups are covered, and the service desk can restore a deleted group.
Review expiration results each quarter: groups renewed automatically, renewed by owners and deleted, and any restored by mistake.
How you'll know it's working
2 measures
Capture a baseline before you start, or you won't be able to show the change.
| Measure | Where you see it | Good direction |
|---|---|---|
| Groups created that follow the naming convention | Entra ID groups | Up |
| Groups deleted by expiration and restored by mistake | Entra ID audit logs | Down |
Take it with you
plan, gate checks, 1 template
Plan outline: phases and when to move on
- Apply the naming policy (1 week). Move on when: Test groups created from Teams and Outlook get the expected names.
- Pilot expiration (2 weeks). Move on when: Owners of pilot groups understood the emails, and no active group was deleted.
- Extend to all groups (1 week). Move on when: All groups are covered, and the service desk can restore a deleted group.
Gate checks: questions to answer before each phase ends
Before leaving Apply the naming policy
- Did test groups get the expected names?
Before leaving Pilot expiration
- Was any active group deleted during the pilot?
Before leaving Extend to all groups
- Can the service desk restore a group within 30 days?
Policy record
Naming: [prefix][GroupName][suffix]. Blocked words: [list]. Expiration: [lifetime], scope: [all/selected], contact for ownerless groups: [mailbox]. Pilot: [groups, dates].
Contributor

Microsoft 365 architecture and governance · Protiviti
Compare notes or suggest an improvement
Changelog
Changelog (1 version)
| Version | Date | By | Change |
|---|---|---|---|
| 1 | Sev Derghazarian | First draft. |