{"id":2669,"date":"2022-03-28T13:48:59","date_gmt":"2022-03-28T13:48:59","guid":{"rendered":"https:\/\/modern-workplace.uk\/?p=2669"},"modified":"2022-03-28T13:51:14","modified_gmt":"2022-03-28T13:51:14","slug":"teams-virtual-sbc-closing-azure-network-ports-warnings-for-azureloadbalancer-and-virtualnetwork-2-2-2-2-3-2-3-2-2-2-2-2-3-2-2-3-2-3-3-2-2-2","status":"publish","type":"post","link":"https:\/\/modern-workplace.uk\/?p=2669","title":{"rendered":"Microsoft Teams &#8211; Converting a Team Membership from Static to Dynamic (and Vice Versa)"},"content":{"rendered":"\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-medium-font-size\">Dynamic membership for teams has been around for a while now, and it is a good solution to keep the list of the members of a team updated automatically, based on the query you defined for the group membership in Azure AD.<\/p>\n\n\n\n<p class=\"has-medium-font-size\">One of the big downsides is that, following Microsoft documentation <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/microsoftteams\/dynamic-memberships#:~:text=Dynamic%20membership%20enables%20the%20membership,join%20and%20leave%20the%20tenant.\" data-type=\"URL\" data-id=\"https:\/\/docs.microsoft.com\/en-us\/microsoftteams\/dynamic-memberships#:~:text=Dynamic%20membership%20enables%20the%20membership,join%20and%20leave%20the%20tenant.\" target=\"_blank\">https:\/\/docs.microsoft.com\/en-us\/microsoftteams\/dynamic-memberships#:~:text=Dynamic%20membership%20enables%20the%20membership,join%20and%20leave%20the%20tenant.<\/a>, you have to create the team with a dynamic membership from the beginning.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">So, is there a way to convert an existing team membership to dynamic (or to move from dynamic to assigned)?<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\">Let&#8217;s say, for example, that I have a team called &#8220;Contoso marketing&#8221; whose membership is an assigned one. I can manage the team and add or remove users from the Teams client<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_04.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"851\" height=\"449\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_04.jpg\" alt=\"\" class=\"wp-image-2670\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_04.jpg 851w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_04-300x158.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_04-768x405.jpg 768w\" sizes=\"auto, (max-width: 851px) 100vw, 851px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">If the team membership is based on a dynamic group, those actions are not available<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_05.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1012\" height=\"204\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_05.jpg\" alt=\"\" class=\"wp-image-2671\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_05.jpg 1012w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_05-300x60.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_05-768x155.jpg 768w\" sizes=\"auto, (max-width: 1012px) 100vw, 1012px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">However, interestingly, if I modify the properties of the Azure AD group connected to the team, I can change the behavior of the team. <\/p>\n\n\n\n<p class=\"has-medium-font-size\">So, let&#8217;s open the <mark style=\"background-color:#00d084\" class=\"has-inline-color\">Group Properties in Azure AD<\/mark> (see screenshot below)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_06.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"965\" height=\"513\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_06.jpg\" alt=\"\" class=\"wp-image-2672\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_06.jpg 965w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_06-300x159.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_06-768x408.jpg 768w\" sizes=\"auto, (max-width: 965px) 100vw, 965px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Let&#8217;s change the membership type to<mark style=\"background-color:#00d084\" class=\"has-inline-color\"> Dynamic User <\/mark>(and we have to add a query)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_07.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"685\" height=\"179\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_07.jpg\" alt=\"\" class=\"wp-image-2673\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_07.jpg 685w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_07-300x78.jpg 300w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/a><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_01.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"301\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_01-1024x301.jpg\" alt=\"\" class=\"wp-image-2674\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_01-1024x301.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_01-300x88.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_01-768x226.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_01.jpg 1220w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Now, if we go back to the Teams client (and refresh) we will see that the membership has been updated and the behavior is the one of a team created using a dynamic user membership group<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_08.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"328\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_08-1024x328.jpg\" alt=\"\" class=\"wp-image-2675\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_08-1024x328.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_08-300x96.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_08-768x246.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/03\/Blog_Membership_08.jpg 1028w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">The change can be reversed by changing the membership type to assigned again<\/p>\n\n\n\n<p class=\"has-medium-font-size\">Some things that you have to consider:<\/p>\n\n\n\n<p class=\"has-medium-font-size\">a) When you change the group type from assigned to dynamic the previous list of members is lost<\/p>\n\n\n\n<p class=\"has-medium-font-size\">b) When you change from dynamic to assigned the list of the group members is kept<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dynamic membership for teams has been around for a while now, and it is a good solution to keep the list of the members of a team updated automatically, based on the query you defined for the group membership in Azure AD.<br \/>\nSo, is there a way to convert an existing team membership to dynamic (or I need to move from dynamic to assigned)?<\/p>\n","protected":false},"author":1,"featured_media":2676,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","twitterCardType":"","cardImageID":0,"cardImage":"","cardTitle":"","cardDesc":"","cardImageAlt":"","cardPlayer":"","cardPlayerWidth":0,"cardPlayerHeight":0,"cardPlayerStream":"","cardPlayerCodec":"","footnotes":""},"categories":[806,753,752,757],"tags":[762,804,759,751,77,755,83],"class_list":["post-2669","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-806","category-microsoft365","category-microsoft-teams","category-office-365","tag-microsoftteams","tag-direct-routing","tag-microsoft-365","tag-microsoft-teams","tag-office-365","tag-teams","tag-voice"],"_links":{"self":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2669","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2669"}],"version-history":[{"count":5,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2669\/revisions"}],"predecessor-version":[{"id":2682,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2669\/revisions\/2682"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/media\/2676"}],"wp:attachment":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}