{"id":2603,"date":"2022-01-06T18:23:20","date_gmt":"2022-01-06T18:23:20","guid":{"rendered":"https:\/\/modern-workplace.uk\/?p=2603"},"modified":"2022-02-04T12:32:32","modified_gmt":"2022-02-04T12:32:32","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","status":"publish","type":"post","link":"https:\/\/modern-workplace.uk\/?p=2603","title":{"rendered":"Microsoft Teams &#8211; Manage Call Groups from PowerShell &#8211; Set-CsUserCallingSettings (CallGroupOrder and CallGroupTargets)"},"content":{"rendered":"\n<p class=\"has-large-font-size\">In a previous post ( <a rel=\"noreferrer noopener\" href=\"https:\/\/modern-workplace.uk\/?p=2591\" data-type=\"URL\" data-id=\"https:\/\/modern-workplace.uk\/?p=2591\" target=\"_blank\">https:\/\/modern-workplace.uk\/?p=2591<\/a> )  I have already talked about the <strong><em><span class=\"has-inline-color has-vivid-purple-color\">Set-CsUserCallingSettings <\/span><\/em><\/strong>command. However, there is an additional aspect of the command that I did not examine: managing Call Groups<\/p>\n\n\n\n<p class=\"has-large-font-size\">The <span class=\"has-inline-color has-black-color\">Set-CsUserCallingSettings<\/span>, for Call Groups, uses the logic you can see in the diagram below (the relevant part is the lower one)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/01\/Set-CsUserCallingSettings_Groups.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"665\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/01\/Set-CsUserCallingSettings_Groups-1024x665.jpg\" alt=\"\" class=\"wp-image-2599\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/01\/Set-CsUserCallingSettings_Groups-1024x665.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/01\/Set-CsUserCallingSettings_Groups-300x195.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/01\/Set-CsUserCallingSettings_Groups-768x499.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/01\/Set-CsUserCallingSettings_Groups.jpg 1049w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-large-font-size\"><strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">Note<\/span><\/strong>: the command description says that you can only use InOrder, if the call group has 5 or less members. I have seen no proof of it.<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>Here are some practical usage examples:<\/strong><\/p>\n\n\n\n<p class=\"has-large-font-size\">Immediately forward all the calls to a group whose members are destination_username1 and  destination_username2, in this order <\/p>\n\n\n\n<p class=\"has-large-font-size\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\"><strong>Set-CsUserCallingSettings -Identity username@modern-workplace.uk -IsForwardingEnabled $true -ForwardingType immediate -ForwardingTargetType group<\/strong><\/mark> <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\"><strong>-CallGroupOrder InOrder -CallGroupTargets (&#8220;destination_username1@modern-workplace.uk&#8221;,&#8221;destination_username2@modern-workplace.uk&#8221;)<\/strong><\/mark><\/p>\n\n\n\n<p class=\"has-large-font-size\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">If you want to modify the members of an existing group (adding  destination_username3 and removing  destination_username1 :<\/mark><\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong><span class=\"has-inline-color has-vivid-purple-color\">$ucs = Get-CsUserCallingSettings -username@modern-workplace.uk<br>$cgt = {$ucs.CallGroupTargets}.Invoke()<br>$cgt.Add(&#8220;destination_username3@modern-workplace.uk&#8221;)<\/span><\/strong><br><strong><span class=\"has-inline-color has-vivid-purple-color\">$cgt.Remove(&#8220;destination_username1@modern-workplace.uk&#8221;)<\/span><\/strong><\/p>\n\n\n\n<p class=\"has-large-font-size\">It is possible to override the setting that the user has for group calls (located in the Teams client as for the screenshot) using the -GroupNotificationOverride parameter<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/01\/NotificationSettings.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"313\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/01\/NotificationSettings-1024x313.jpg\" alt=\"\" class=\"wp-image-2600\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/01\/NotificationSettings-1024x313.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/01\/NotificationSettings-300x92.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/01\/NotificationSettings-768x235.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/01\/NotificationSettings-1536x469.jpg 1536w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2022\/01\/NotificationSettings.jpg 1800w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-large-font-size\">The possible settings fo override are <strong><span class=\"has-inline-color has-vivid-purple-color\">Ring<\/span><\/strong>, <strong><span class=\"has-inline-color has-vivid-purple-color\">Mute <\/span><\/strong>and <strong><span class=\"has-inline-color has-vivid-purple-color\">Banner<\/span><\/strong><span class=\"has-inline-color has-black-color\">. For example, to set Ring<\/span><\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong><span class=\"has-inline-color has-vivid-purple-color\">Set-CsUserCallingSettings -Identity username@modern-workplace.uk -GroupNotificationOverride Ring<\/span><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a previous post ( https:\/\/modern-workplace.uk\/?p=2591 )  I have already talked about the Set-CsUserCallingSettings command. However there is an additional aspect of the command that I did not examine: managing Call Groups.<\/p>\n","protected":false},"author":1,"featured_media":2601,"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-2603","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\/2603","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=2603"}],"version-history":[{"count":3,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2603\/revisions"}],"predecessor-version":[{"id":2645,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2603\/revisions\/2645"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/media\/2601"}],"wp:attachment":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}