We will be retiring LocationPolicy, OptionFlags and VoicePolicy attributes from Get-CsOnlineUser and Get-CsUserPolicyAssignment cmdlets in the Teams PowerShell Module, If you are using these cmdlets to get LocationPolicy, VoicePolicy, or OptionFlags review the information below for additional details.
[When will this happen:]
The retirement is planned to happen in March 2024.
[How this will affect your organization:]
When this change is implemented:
- Administrators will no longer see
LocationPolicyattribute in the output of theGet-CsOnlineUsercmdlet 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 (<6.1.0)LocationPolicywill no longer be populated starting from 20th March 2024. - Administrators will no longer see
LocationPolicyandVoicePolicyattributes in the output of theGet-CsUserPolicyAssignmentcmdlet 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 (<6.1.0)LocationPolicyandVoicePolicywill no longer be populated starting from 20th March 2024. - Administrators will see
OptionFlagsattribute as empty in the output of theGet-CsOnlineUsercmdlet in all existing Teams PowerShell Module versions (<=6.1.0) and any new versions (>6.1.0) that releases after March 20th, 2024.
[What you need to do to prepare:]
When this change is implemented,
- Administrators will no longer be able to get the LocationPolicy and
OptionFlagsfromGet-CsOnlineUsercmdlet. Instead, administrators will need to use the Teams PowerShell Module cmdlets:Get-CsPhoneNumberAssignment -IsoCountryCodeto get theLocationPolicyinformation. It’s important to note that other details besidesEnterpriseVoiceEnabled, previously found inOptionFlags, are no longer relevant for Teams. Administrators can still utilize theEnterpriseVoiceEnabledattribute in the output of theGet-CsOnlineUsercmdlet to get this information. - Administrators will no longer be able to get the
LocationPolicyandVoicePolicyfromGet-CsUserPolicyAssignmentcmdlet. Instead, administrators will need to use the Teams PowerShell Module cmdlets:Get-CsPhoneNumberAssignment -IsoCountryCodeto get theLocationPolicyinformation.
Detailed instructions on how to use these cmdlets are provided in Get-CsPhoneNumberAssignment, Get-CsOnlineUser, Get-CsUserPolicyAssignment