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

Who's in the room: Identity administrator (owner), collaboration service owner, communications lead

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

  1. Decide if a Team is the right tool
  2. 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.

    Who: Collaboration service ownerProduces: A naming convention and lifetime

  • Tell owners first
    How to do it

    Announce the policies using the messages from Plan adoption for Teams governance.

    Who: Communications leadProduces: Announcements sent

Rollout approach: Representative cross-section · Pilot size: Selected groups from several departments. Applying expiration to selected groups first shows how many quiet groups get renewal emails before every owner receives them.

Pilot to production

3 phases
  1. Apply the naming policy1 week

    Configure the prefix, suffix and blocked words, test by creating groups from Teams and Outlook, then announce.

    Who: Identity administratorProduces: A working naming policy

    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

  2. Pilot expiration2 weeks

    Apply the expiration policy to selected groups, and watch renewal emails, automatic renewals and any deletions.

    Who: Identity administrator with the collaboration service ownerProduces: Expiration piloted

    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

  3. Extend to all groups1 week

    Apply the policy to all groups, and give the service desk the restore process.

    Who: Identity administratorProduces: Expiration on all groups

    Move on when All groups are covered, and the service desk can restore a deleted group.

Alongside every phase:

Review expiration results each quarter: groups renewed automatically, renewed by owners and deleted, and any restored by mistake.

What keeps it in place:

Both policies apply when groups are created or edited across workloads, and expiration runs continuously, so they don't depend on people remembering.

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.

Measures, where you see them, and the direction that means success
MeasureWhere you see itGood direction
Groups created that follow the naming conventionEntra ID groups Up
Groups deleted by expiration and restored by mistakeEntra ID audit logs Down

Take it with you

plan, gate checks, 1 template

Plan outline: phases and when to move on

  1. Apply the naming policy (1 week). Move on when: Test groups created from Teams and Outlook get the expected names.
  2. Pilot expiration (2 weeks). Move on when: Owners of pilot groups understood the emails, and no active group was deleted.
  3. 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].

Microsoft Learn

4 links

Contributor

Compare notes or suggest an improvement

Your message goes straight to Sev Derghazarian.

What would you like to do?

Subject:

The send button is enabled once the spam check below completes.

Changelog

Changelog (1 version)
Published versions of this playbook
VersionDateByChange
1Sev DerghazarianFirst draft.