How to Create a Dynamic Team in Microsoft Teams with All Active Employees in Microsoft 365
Tags: office365, collaboration, microsoft365, microsoftteams
Published: 2024-01-24 16:22:25

---
title: How to Create a Dynamic Team in Microsoft Teams with All Active Employees in Microsoft 365
published: true
date: 2020-09-21 19:13:03 UTC
tags: Office365,Collaboration,Microsoft365,MicrosoftTeams
canonical_url: https://blogit.create.pt/miguelisidoro/2020/09/21/how-to-create-a-dynamic-team-in-microsoft-teams-with-all-active-employees-in-microsoft-365/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-create-a-dynamic-team-in-microsoft-teams-with-all-active-employees-in-microsoft-365
---

This post explains how you can create a dynamic team in [Microsoft Teams](https://www.microsoft.com/en-us/microsoft-365/microsoft-teams/group-chat-software) to have all active active employees in your company using Azure AD Group dynamic membership rules.

## Introduction

We are living challenging times with the current Covid-19 pandemic crisis and keeping teams together is more important than ever!

Org-wide teams have been around for quite some time, but these are quite inefficient since we don’t have any control on what users are added to the team (service accounts for instance are also added if they have valid licenses assigned to them).

This post explains how you can create a new team in Microsoft Teams containing all active employees in your company based on Azure AD Group dynamic membership rules. Unlike org-wide teams, this approach gives you complete control over what users are added to the team.

The “Team with all employees” scenario makes more sense for small and medium-sized companies. For larger companies, the steps provided in this post can be adapted to create smaller dynamic teams based on Azure AD dynamic membership rules (ex: department teams or any other type of dynamic teams based on valid Azure AD user profile properties).

## Pre-Requisites and How-To Steps

### Pre-Requisites

The steps described in this post require:

- Azure AD Premium P1 license for all users included in the dynamic team
- If you are using Active Directory, AD attributes have to be correctly configured and synced to Azure AD to allow the dynamic group to retrieve all active company employees (in our example, we are using the companyName attribute and all users with companyName = “Create IT” will be considered as active employees)

### How-To Steps

Now it is time for the fun part! Follow the following steps:

1. Create a new [Team in Microsoft Teams](https://docs.microsoft.com/en-us/microsoftteams/get-started-with-teams-create-your-first-teams-and-channels) as you would to create a “normal” team. If the team already exists and you want to change an already existing Team to be dynamic, you can skip this step
2. Go to your [Azure Active Directory Admin Center](https://aad.portal.azure.com/)
3. In Azure Active Directory Admin Center, select “Groups”. This option will allow us to access all Azure AD Groups, that contain teams in Microsoft Teams (group type = “Microsoft 365”)  
  
 ![](https://i1.wp.com/blogit.create.pt/wp-content/uploads/2020/09/AAD_Groups_Selection.jpg?resize=696%2C336&ssl=1)  
4. Select the group you want to edit and set as dynamic. Membership type should be at this time set as “Assigned”, meaning that all members are added manually.  
  
 ![](https://i1.wp.com/blogit.create.pt/wp-content/uploads/2020/09/AAD_Select_Group_AD.jpg?resize=696%2C208&ssl=1)
5. The group details are now shown  
  
 ![](https://i2.wp.com/blogit.create.pt/wp-content/uploads/2020/09/AAD_Group_Details.jpg?resize=696%2C349&ssl=1)
6. Select “Properties” on the left menu and change the membership type to “Dynamic user” and click “Save”  
  
 ![](https://i1.wp.com/blogit.create.pt/wp-content/uploads/2020/09/AAD_Group_Edit.jpg?resize=696%2C377&ssl=1)
7. Select “Dynamic membership rules” on the left menu and add an expression that dynamically retrieves the active employees in the company. In our case, the expression is “(user.companyName -eq “Create IT”) and (user.accountEnabled -eq True)”. Click “Save” to save your changes.  
  
 ![](https://i2.wp.com/blogit.create.pt/wp-content/uploads/2020/09/AAD_Group_Edit_DynamicMembershipRules.jpg?resize=696%2C293&ssl=1)
8. The Azure AD Group is now dynamic and users in the group will be retrieved using the expression set in the previous step  
  
 ![](https://i2.wp.com/blogit.create.pt/wp-content/uploads/2020/09/AAD_Group_Details_DynamicMemberhip.jpg?resize=696%2C346&ssl=1)
9. Select “Members” in the left menu. Now that the AD Group is dynamic, you will not be able to add or remove members from the group manually.  
  
 ![](https://i2.wp.com/blogit.create.pt/wp-content/uploads/2020/09/AAD_Group_Members.jpg?resize=696%2C294&ssl=1)

## Testing The Results

To test if the configuration was successful, just follow the following steps:

- Add a new user to Active Active Directory, filling the attributes that match the dynamic membership group expression in the Azure AD Group
- Force Azure Active Directory to Azure AD synchronization

Everytime new employees are added to Active Directory and synced to Azure AD, a message in the “General” channel in Microsoft Teams will be shown saying that the user has been added to team!

![](https://i2.wp.com/blogit.create.pt/wp-content/uploads/2020/09/Teams_New_Members.jpg?resize=577%2C148&ssl=1)

## Related Articles

To learn why your business should migrate to SharePoint Online and Office 365, click [here](https://dev.to/mlisidoro/why-you-should-migrate-to-office-365-part-1-264l) and [here](https://dev.to/mlisidoro/why-you-should-migrate-to-office-365-part-2-5943).

If you want to learn how you can rename a modern SharePoint site, click [here](https://dev.to/mlisidoro/how-to-rename-a-modern-sharepoint-site-url-in-office-365-595d).

If you want to learn how to save time time scheduling your meetings, click [here](https://blogit.create.pt/miguelisidoro/2020/04/12/save-time-scheduling-microsoft-teams-meetings-using-findtime/).

If you want to learn how to enable Microsoft Teams Attendance List Download, click [here](https://blogit.create.pt/miguelisidoro/2020/09/20/how-to-enable-teams-meeting-attendance-list-download-in-microsoft-365/).

If you want to modernize your SharePoint classic root site to a modern SharePoint site, click [here](https://dev.to/mlisidoro/how-to-convert-your-classic-root-site-collection-in-office-365-to-modern-sharepoint-7jo).

If you are a SharePoint administrator or a SharePoint developer who wants to learn more about how to install a SharePoint 2019 farm in an automated way using PowerShell, I invite you to click [here](https://dev.to/mlisidoro/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1-5bjp) and [here](https://dev.to/mlisidoro/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-2-1b9k).

If you learn how to greatly speed up your SharePoint farm update process to ensure your SharePoint farm keeps updated and you stay one step closer to start your move to the cloud, click [here](https://dev.to/mlisidoro/how-to-speed-up-the-installation-of-sharepoint-cumulative-updates-using-powershell-step-by-step-434c).

If you prefer to use the traditional method to update your farm and want to learn all the steps and precautions necessary to successfully keep your SharePoint farm updated, click [here](https://dev.to/mlisidoro/how-to-install-sharepoint-cumulative-updates-in-a-sharepoint-farm-step-by-step-f50).

If you want to learn how to upgrade a SharePoint 2013 farm to SharePoint 2019, click [here](https://dev.to/mlisidoro/how-to-upgrade-from-sharepoint-2013-to-sharepoint-2019-step-by-step-part-1-2jkn)and [here](https://dev.to/mlisidoro/how-to-upgrade-from-sharepoint-2013-to-sharepoint-2019-step-by-step-part-2-feo).

If SharePoint 2019 is still not an option, you can learn more about how to install a SharePoint 2016 farm in an automated way using PowerShell, click [here](https://dev.to/mlisidoro/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-1-54m5) and [here](https://dev.to/mlisidoro/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-2-5e36).

If you want to learn how to upgrade a SharePoint 2010 farm to SharePoint 2016, click [here](https://dev.to/mlisidoro/sharepoint-upgrade-upgrading-a-sharepoint-2010-farm-to-sharepoint-2016-step-by-step-part-1-55n7)and [here](https://dev.to/mlisidoro/sharepoint-upgrade-upgrading-a-sharepoint-2010-farm-to-sharepoint-2016-step-by-step-part-2-4f18).

If you are new to SharePoint and Office 365 and want to learn all about it, take a look at these [learning resources](https://dev.to/mlisidoro/sharepoint-and-office-365-learning-resources-162e).

If you are work in a large organization who is using Office 365 or thinking to move to Office 365 and is considering between a single or multiple Office 365 tenants, I invite you to read [this article](https://dev.to/mlisidoro/pros-and-cons-of-single-tenant-vs-multiple-tenants-in-office-365-2hd9).

If you want to know all about the latest SharePoint and Office 365 announcements from Ignite and some more recent announcements, including Microsoft Search, What’s New to Build a Modern Intranet with SharePoint in Office 365, Deeper Integration between Microsoft Teams and SharePoint and the latest news on SharePoint development, click [here](https://dev.to/mlisidoro/whats-new-for-sharepoint-and-office-365-after-microsoft-ignite-2018-7ga).

If your organization is still not ready to go all in to SharePoint Online and Office 365, a hybrid scenario may be the best choice. SharePoint 2019 RTM was recently announced and if you to learn all about SharePoint 2019 and all its features, click [here](https://dev.to/mlisidoro/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here-2oak).

Happy Scheduling!

The post [How to Create a Dynamic Team in Microsoft Teams with All Active Employees in Microsoft 365](https://blogit.create.pt/miguelisidoro/2020/09/21/how-to-create-a-dynamic-team-in-microsoft-teams-with-all-active-employees-in-microsoft-365/) appeared first on [Blog IT](https://blogit.create.pt).