Overview of dynamic membership for teams

Microsoft Teams supports teams associated with Microsoft 365 groups by using dynamic membership. Dynamic membership enables the membership of a team to be defined by one or more rules that check for certain user attributes in Microsoft Entra ID. Users are automatically added or removed to the correct teams as user attributes change or users join and leave the tenant.

With dynamic membership you can set up teams for certain cohorts of users in your organization. Possible scenarios include:

  • A hospital can create distinct teams for nurses, doctors, and surgeons to broadcast communications. This is especially important if the hospital relies on temp employees.
  • A university can create a team for all faculty within a particular college, including an adjunct faculty that changes frequently.
  • An airline wants to create a team for each flight (like a Tuesday afternoon non-stop from Chicago to Atlanta) and have a frequently changing flight crew automatically assigned or removed as needed.

Using this feature, a given team's members update automatically based on a specific set of criteria, instead of manually managing membership. Doing this requires Microsoft Entra ID P1 licenses and team membership can be assigned by a tenant admin to any user's Microsoft Entra properties provided you have a tenant and an admin account.

Microsoft Teams may take anywhere from a few minutes to up to 2 hours to reflect dynamic membership changes once they take effect in the Microsoft 365 group for a team.

When using teams with dynamic groups:

  • Rules can define who is a team member, but not who is a team owner.
  • Owners will not be able to add or remove users as members of the team, since members are defined by dynamic group rules.
  • Teams clients don't allow member management for the team. Options to add members, edit member roles, send and approve join requests, and leave the team are all hidden.

To create a team that uses dynamic membership, start by creating a dynamic Microsoft 365 group and then create a team from that group.

You can change an existing team to have a dynamic membership. See Change static group membership to dynamic in Microsoft Entra ID for information.

Limits and specifications for Microsoft Teams

Dynamic membership rules for groups in Microsoft Entra ID