{"id":5310,"date":"2024-02-28T10:01:14","date_gmt":"2024-02-28T01:01:14","guid":{"rendered":"https:\/\/m365jp.net\/?p=5310"},"modified":"2024-02-28T10:15:52","modified_gmt":"2024-02-28T01:15:52","slug":"mc720181-update-to-get-csonlineuser-and-get-csuserpolicyassignment-cmdlet-in-the-teams-powershell-module","status":"publish","type":"post","link":"https:\/\/m365jp.net\/index.php\/2024-02-28-mc720181-update-to-get-csonlineuser-and-get-csuserpolicyassignment-cmdlet-in-the-teams-powershell-module","title":{"rendered":"MC720181 | Update to Get-CsOnlineUser and Get-CsUserPolicyAssignment cmdlet in the Teams PowerShell Module"},"content":{"rendered":"<div class=\"postie-post\">\n<div>\n<hr>\n<table id=\"section\">\n<tbody>\n<tr>\n<th width=\"95%\">MC720181 | Update to Get-CsOnlineUser and Get-CsUserPolicyAssignment cmdlet in the Teams PowerShell Module<\/th>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<table id=\"data\">\n<tbody>\n<tr>\n<th>Classification<\/th>\n<td>planForChange<\/td>\n<\/tr>\n<tr>\n<th>Last Updated<\/th>\n<td>02\/28\/2024 00:17:48<\/td>\n<\/tr>\n<tr>\n<th>Start Time<\/th>\n<td>02\/28\/2024 00:17:24<\/td>\n<\/tr>\n<tr>\n<th>End Time<\/th>\n<td>05\/05\/2025 07:00:00<\/td>\n<\/tr>\n<tr>\n<th>Message Content<\/th>\n<td>\n<p>We will be retiring&nbsp;LocationPolicy, OptionFlags and VoicePolicy attributes from  <code>Get-CsOnlineUser<\/code> and <code>Get-CsUserPolicyAssignment<\/code> cmdlets in the Teams PowerShell Module, If you are using these cmdlets to get  <code>LocationPolicy<\/code>, <code>VoicePolicy<\/code>, or <code>OptionFlags<\/code> review the information below for additional details.<\/p>\n<p>  <\/p>\n<p>[When will this happen:]  <\/p>\n<p>The retirement is planned to happen in March 2024. <\/p>\n<p>[How this will affect your organization:]<\/p>\n<p>When this change is implemented:  <\/p>\n<ul>\n<li>Administrators will no longer see <code>LocationPolicy<\/code> attribute in the output of the  <code>Get-CsOnlineUser<\/code> cmdlet in Teams PowerShell Module version 6.1.0 (planned to be released on 15th March 2024) and any later versions. Whereas for older Teams PowerShell Module versions (&lt;6.1.0)  <code>LocationPolicy<\/code> will no longer be populated starting from 20th March 2024.  <\/li>\n<li>Administrators will no longer see <code>LocationPolicy<\/code> and <code>VoicePolicy<\/code> attributes in the output of the  <code>Get-CsUserPolicyAssignment<\/code> cmdlet in Teams PowerShell Module version 6.1.0 (planned to be released on 15th March 2024) and any later versions. Whereas for older Teams PowerShell Module versions (&lt;6.1.0)  <code>LocationPolicy<\/code> and <code>VoicePolicy<\/code> will no longer be populated starting from 20th March 2024.  <\/li>\n<li>Administrators will see <code>OptionFlags<\/code> attribute as empty in the output of the  <code>Get-CsOnlineUser<\/code> cmdlet in all existing Teams PowerShell Module versions (&lt;=6.1.0) and any new versions (&gt;6.1.0) that releases after March 20th, 2024.<\/li>\n<\/ul>\n<p>[What you need to do to prepare:]  <\/p>\n<p>When this change is implemented,  <\/p>\n<ul>\n<li>Administrators will no longer be able to get the LocationPolicy and <code>OptionFlags<\/code> from  <code>Get-CsOnlineUser<\/code> cmdlet. Instead, administrators will need to use the Teams PowerShell Module cmdlets:  <code>Get-CsPhoneNumberAssignment -IsoCountryCode<\/code> to get the <code>LocationPolicy<\/code> information. It&#8217;s important to note that other details besides  <code>EnterpriseVoiceEnabled<\/code>, previously found in <code>OptionFlags<\/code>, are no longer relevant for Teams. Administrators can still utilize the  <code>EnterpriseVoiceEnabled<\/code> attribute in the output of the <code>Get-CsOnlineUser<\/code> cmdlet to get this information.  <\/li>\n<li>Administrators will no longer be able to get the <code>LocationPolicy<\/code> and  <code>VoicePolicy<\/code> from <code>Get-CsUserPolicyAssignment<\/code> cmdlet. Instead, administrators will need to use the Teams PowerShell Module cmdlets:  <code>Get-CsPhoneNumberAssignment -IsoCountryCode<\/code> to get the <code>LocationPolicy<\/code> information.  <\/li>\n<\/ul>\n<p>Detailed instructions on how to use these cmdlets are provided in <a href=\"https:\/\/learn.microsoft.com\/powershell\/module\/teams\/get-csphonenumberassignment\" target=\"_blank\" rel=\"noopener\">  Get-CsPhoneNumberAssignment<\/a>,&nbsp;<a href=\"https:\/\/learn.microsoft.com\/powershell\/module\/skype\/get-csonlineuser\" target=\"_blank\" style=\"\" rel=\"noopener\">Get-CsOnlineUser<\/a>,&nbsp;<a href=\"https:\/\/learn.microsoft.com\/powershell\/module\/teams\/get-csuserpolicyassignment\" target=\"_blank\" style=\"\" rel=\"noopener\">Get-CsUserPolicyAssignment<\/a><\/p>\n<p>  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>Machine Translation<\/th>\n<td>\n<p>?Teams PowerShell \u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u304b\u3089 <code>Get-CsUserPolicyAssignment<\/code> <code>  Get-CsOnlineUser<\/code> LocationPolicy\u3001OptionFlags\u3001VoicePolicy \u5c5e\u6027\u3092\u5ec3\u6b62&nbsp;\u3057\u307e\u3059 (\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8<code>LocationPolicy<\/code>\u3092\u4f7f\u7528\u3057\u3066\u3001<code>VoicePolicy<\/code>\u307e\u305f\u306f<code>OptionFlags<\/code>\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044)\u3002<\/p>\n<p>  <\/p>\n<p>[\u3053\u308c\u306f\u3044\u3064\u8d77\u3053\u308b\u306e\u304b:]<\/p>\n<p>\u5f15\u9000\u306f2024\u5e743\u6708\u3092\u4e88\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002 <\/p>\n<p>[\u3053\u308c\u304c\u7d44\u7e54\u306b\u53ca\u307c\u3059\u5f71\u97ff:]<\/p>\n<p>\u3053\u306e\u5909\u66f4\u304c\u5b9f\u88c5\u3055\u308c\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u7ba1\u7406\u8005\u306f\u3001Teams PowerShell \u30e2\u30b8\u30e5\u30fc\u30eb \u30d0\u30fc\u30b8\u30e7\u30f3 6.1.0 (2024 \u5e74 3 \u6708 15 \u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u4e88\u5b9a) \u4ee5\u964d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u306e<code>Get-CsOnlineUser<\/code>\u51fa\u529b\u306b\u5c5e\u6027\u304c\u8868\u793a\u3055\u308c<code>LocationPolicy<\/code>\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u4e00\u65b9\u3001\u53e4\u3044 Teams \u306e\u5834\u5408\u3001PowerShell \u30e2\u30b8\u30e5\u30fc\u30eb \u30d0\u30fc\u30b8\u30e7\u30f3 (&lt;6.1.0)  <code>LocationPolicy<\/code> \u306f 2024 \u5e74 3 \u6708 20 \u65e5\u304b\u3089\u8a2d\u5b9a\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>\u7ba1\u7406\u8005\u306f\u3001Teams PowerShell \u30e2\u30b8\u30e5\u30fc\u30eb \u30d0\u30fc\u30b8\u30e7\u30f3 6.1.0 (2024 \u5e74 3 \u6708 15 \u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u4e88\u5b9a) \u4ee5\u964d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u306e<code>Get-CsUserPolicyAssignment<\/code>\u51fa\u529b\u306b\u5c5e\u6027<code>VoicePolicy<\/code>\u304c\u8868\u793a\u3055\u308c<code>LocationPolicy<\/code>\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u4e00\u65b9\u3001\u53e4\u3044 Teams PowerShell \u30e2\u30b8\u30e5\u30fc\u30eb \u30d0\u30fc\u30b8\u30e7\u30f3 (&lt;6.1.0)  <code>LocationPolicy<\/code> \u306e\u5834\u5408\u3001<code>VoicePolicy<\/code>2024 \u5e74 3 \u6708 20 \u65e5\u4ee5\u964d\u306f\u8a2d\u5b9a\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>\u7ba1\u7406\u8005\u306b\u306f\u30012024 \u5e74 3 \u6708 20 \u65e5\u4ee5\u964d\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u308b\u65e2\u5b58\u306e\u3059\u3079\u3066\u306e Teams PowerShell \u30e2\u30b8\u30e5\u30fc\u30eb \u30d0\u30fc\u30b8\u30e7\u30f3 (&lt;=6.1.0) \u3068\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3 (&gt;6.1.0) \u306e\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u306e<code>Get-CsOnlineUser<\/code>\u51fa\u529b\u3067\u5c5e\u6027\u304c\u7a7a\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u307e\u3059<code>OptionFlags<\/code>\u3002<\/li>\n<\/ul>\n<p>[\u6e96\u5099\u306b\u5fc5\u8981\u306a\u3053\u3068:]<\/p>\n<p>\u3053\u306e\u5909\u66f4\u304c\u5b9f\u88c5\u3055\u308c\u308b\u3068\u3001<\/p>\n<ul>\n<li>\u7ba1\u7406\u8005\u306f\u3001\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u304b\u3089 <code>Get-CsOnlineUser<\/code> LocationPolicy \u3092\u53d6\u5f97<code>OptionFlags<\/code>\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u4ee3\u308f\u308a\u306b\u3001\u7ba1\u7406\u8005\u306f Teams PowerShell \u30e2\u30b8\u30e5\u30fc\u30eb \u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8<code>Get-CsPhoneNumberAssignment -IsoCountryCode<\/code>\u3092\u4f7f\u7528\u3057\u3066\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b<code>LocationPolicy<\/code>\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u524d\u306b \u306b\u3042\u3063\u305f  <code>OptionFlags<\/code>\u4ee5\u5916\u306e\u8a73\u7d30\u306f<code>EnterpriseVoiceEnabled<\/code>\u3001Teams \u306b\u306f\u95a2\u9023\u3057\u306a\u304f\u306a\u3063\u305f\u3053\u3068\u306b\u6ce8\u610f\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u7ba1\u7406\u8005\u306f\u3001\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u306e<code>Get-CsOnlineUser<\/code>\u51fa\u529b\u306e\u5c5e\u6027\u3092\u5f15\u304d\u7d9a\u304d\u5229\u7528<code>EnterpriseVoiceEnabled<\/code>\u3057\u3066\u3001\u3053\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>\u7ba1\u7406\u8005\u306f\u3001\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u304b\u3089 and <code>VoicePolicy<\/code> from <code>Get-CsUserPolicyAssignment<\/code> \u3092\u53d6\u5f97<code>LocationPolicy<\/code>\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u4ee3\u308f\u308a\u306b\u3001\u7ba1\u7406\u8005\u306f Teams PowerShell \u30e2\u30b8\u30e5\u30fc\u30eb \u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8<code>Get-CsPhoneNumberAssignment -IsoCountryCode<\/code>\u3092\u4f7f\u7528\u3057\u3066\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b<code>LocationPolicy<\/code>\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u306e\u4f7f\u7528\u65b9\u6cd5\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u300c<a href=\"https:\/\/learn.microsoft.com\/powershell\/module\/teams\/get-csphonenumberassignment\" target=\"_blank\" rel=\"noopener\">Get-CsPhoneNumberAssignment<\/a>\u3001<a href=\"https:\/\/learn.microsoft.com\/powershell\/module\/skype\/get-csonlineuser\" target=\"_blank\" style=\"\" rel=\"noopener\">Get-CsOnlineUser<\/a>\u3001&nbsp;&nbsp;<a href=\"https:\/\/learn.microsoft.com\/powershell\/module\/teams\/get-csuserpolicyassignment\" target=\"_blank\" style=\"\" rel=\"noopener\">Get-CsUserPolicyAssignment<\/a>\u300d\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n<p>  <\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>MC720181 | Update to Get-CsOnlineUser and Get-CsUserPolicyAssignment cmdlet in the Teams PowerShell Module Cla [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5310","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/m365jp.net\/index.php\/wp-json\/wp\/v2\/posts\/5310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m365jp.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/m365jp.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/m365jp.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m365jp.net\/index.php\/wp-json\/wp\/v2\/comments?post=5310"}],"version-history":[{"count":0,"href":"https:\/\/m365jp.net\/index.php\/wp-json\/wp\/v2\/posts\/5310\/revisions"}],"wp:attachment":[{"href":"https:\/\/m365jp.net\/index.php\/wp-json\/wp\/v2\/media?parent=5310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/m365jp.net\/index.php\/wp-json\/wp\/v2\/categories?post=5310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/m365jp.net\/index.php\/wp-json\/wp\/v2\/tags?post=5310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}