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 Azure Active Directory (Azure AD). 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 Azure AD Premium P1 licenses and team membership can be assigned by a tenant admin to any user's Azure AD 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.
- Rules can define who is a team member, but not who is a team owner.
- See Limits and specifications for Microsoft Teams for current limits on team and channel sizes.
- Owners will not be able to add or remove users as members of the team, since members are defined by dynamic group rules.
- Members will not be able to leave teams backed by dynamic groups.
Creating and managing a Microsoft 365 group with dynamic membership
While logged in as the tenant admin, follow the instructions in Create a dynamic group and check status. As needed, refer to Dynamic membership rules for groups in Azure Active Directory.
Create a new team with your Microsoft 365 group
Now allow time for the membership changes to take effect, and create a new team as described in Create a team from an existing group.
Apply dynamic membership to an existing team
You can also take an existing team and change it to have a dynamic membership, as described in Change static group membership to dynamic in Azure Active Directory.
Changes in client behavior
Once dynamic membership is enabled for a team, Teams clients will no longer 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.