From 92366cd8f5e5f12371bf712262c4b54e243da6fd Mon Sep 17 00:00:00 2001 From: pavellatif <142821210+pavellatif@users.noreply.github.com> Date: Thu, 20 Feb 2025 12:46:32 -0500 Subject: [PATCH 1/2] Updating cmdlet with AssignmentCategory example --- teams/teams-ps/teams/Get-CsPhoneNumberAssignment.md | 2 +- teams/teams-ps/teams/Set-CsPhoneNumberAssignment.md | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/teams/teams-ps/teams/Get-CsPhoneNumberAssignment.md b/teams/teams-ps/teams/Get-CsPhoneNumberAssignment.md index 21832d36b4..98b1ff02a0 100644 --- a/teams/teams-ps/teams/Get-CsPhoneNumberAssignment.md +++ b/teams/teams-ps/teams/Get-CsPhoneNumberAssignment.md @@ -266,7 +266,7 @@ Accept wildcard characters: False ``` ### -AssignmentCategory -This parameter is reserved for internal Microsoft use. +This parameter is used to differentiate between Primary and Private line assignment for a user. ```yaml Type: System.String diff --git a/teams/teams-ps/teams/Set-CsPhoneNumberAssignment.md b/teams/teams-ps/teams/Set-CsPhoneNumberAssignment.md index 77f4b58a11..955c417b0e 100644 --- a/teams/teams-ps/teams/Set-CsPhoneNumberAssignment.md +++ b/teams/teams-ps/teams/Set-CsPhoneNumberAssignment.md @@ -144,10 +144,17 @@ Set-CsPhoneNumberAssignment -Identity user3@contoso.com -PhoneNumber +1206555122 ``` This example shows how to turn off reverse number lookup (RNL) on a phone number. When RNL is set to 'SkipInternalVoip', an internal call to this phone number will not attempt to pass through internal VoIP via reverse number lookup in Microsoft Teams. Instead the call will be established through external PSTN connectivity directly. This example is only applicable for Direct Routing phone numbers. +### Example 12 +```powershell +Set-CsPhoneNumberAssignment -Identity user1@contoso.com -PhoneNumber '+14255551234' -PhoneNumberType CallingPlan -AssignmentCategory Private +``` +This example shows how to assign a private phonenumber (incoming calls only) to a user. + + ## PARAMETERS ### -AssignmentCategory -This parameter is reserved for internal Microsoft use. +This parameter is used to indicate category of phone number assignment if not primary phonenumber. E.g. Private line can be assigned to a user using -AssignmentCategory Private ```yaml Type: System.String From d0494d266346087dc65e7f462a51561487e16543 Mon Sep 17 00:00:00 2001 From: Mary-Katherine Bond Sims Date: Thu, 20 Feb 2025 13:03:45 -0500 Subject: [PATCH 2/2] Fix typos and improve clarity in documentation --- teams/teams-ps/teams/Set-CsPhoneNumberAssignment.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teams/teams-ps/teams/Set-CsPhoneNumberAssignment.md b/teams/teams-ps/teams/Set-CsPhoneNumberAssignment.md index 955c417b0e..618ec4d542 100644 --- a/teams/teams-ps/teams/Set-CsPhoneNumberAssignment.md +++ b/teams/teams-ps/teams/Set-CsPhoneNumberAssignment.md @@ -148,13 +148,13 @@ This example shows how to turn off reverse number lookup (RNL) on a phone number ```powershell Set-CsPhoneNumberAssignment -Identity user1@contoso.com -PhoneNumber '+14255551234' -PhoneNumberType CallingPlan -AssignmentCategory Private ``` -This example shows how to assign a private phonenumber (incoming calls only) to a user. +This example shows how to assign a private phone number (incoming calls only) to a user. ## PARAMETERS ### -AssignmentCategory -This parameter is used to indicate category of phone number assignment if not primary phonenumber. E.g. Private line can be assigned to a user using -AssignmentCategory Private +This parameter indicates the phone number assignment category if it isn't the primary phone number. For example, a Private line can be assigned to a user using '-AssignmentCategory Private'. ```yaml Type: System.String