-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched order of PowerShell instructions
Updated article to switch order around and have PowerShell instructions appear at the bottom instead of at the top.
- Loading branch information
1 parent
607150d
commit 2dd033b
Showing
1 changed file
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,39 +47,6 @@ To assign a number by using the Teams admin center: | |
|
||
[!INCLUDE [assign-phone-numbers-to-users-steps](./includes/assign-phone-numbers-to-users-steps.md)] | ||
|
||
To assign numbers by using PowerShell, use the [Set-CsPhoneNumberAssignment](/powershell/module/teams/set-csphonenumberassignment) cmdlet as follows: | ||
|
||
For Calling Plan numbers: | ||
|
||
```PowerShell | ||
Set-CsPhoneNumberAssignment -Identity <user> -PhoneNumber <phone number> -PhoneNumberType CallingPlan | ||
``` | ||
|
||
For Operator Connect numbers: | ||
|
||
```PowerShell | ||
Set-CsPhoneNumberAssignment -Identity <user> -PhoneNumber <phone number> -PhoneNumberType OperatorConnect | ||
``` | ||
|
||
For Teams Phone Mobile numbers: | ||
|
||
```PowerShell | ||
Set-CsPhoneNumberAssignment -Identity <user> -PhoneNumber <phone number> -PhoneNumberType OperatorConnect | ||
``` | ||
|
||
For example: | ||
|
||
```PowerShell | ||
Set-CsPhoneNumberAssignment -Identity [email protected] -PhoneNumber "+14255550101" -PhoneNumberType CallingPlan | ||
Set-CsPhoneNumberAssignment -Identity [email protected] -PhoneNumber "+14255550102" -PhoneNumberType OperatorConnect | ||
``` | ||
|
||
> [!NOTE] | ||
> Because of the latency between Microsoft 365 and Teams, it can take up to 24 hours for users to be enabled. If the phone number isn't assigned correctly after 24 hours, see [Phone Number Service Center](https://pstnsd.powerappsportals.com/). | ||
> [!NOTE] | ||
> When you assign a phone number, the EnterpriseVoiceEnabled flag is automatically set to True. | ||
## Change a phone number for a user | ||
|
||
To change a phone number for a user by using the Teams admin center: | ||
|
@@ -123,6 +90,39 @@ To remove a phone number by using the Teams admin center: | |
|
||
For a PowerShell example, see [Remove-CsPhoneNumberAssignment](/powershell/module/teams/remove-csphonenumberassignment). | ||
|
||
To assign numbers by using PowerShell, use the [Set-CsPhoneNumberAssignment](/powershell/module/teams/set-csphonenumberassignment) cmdlet as follows: | ||
|
||
For Calling Plan numbers: | ||
|
||
```PowerShell | ||
Set-CsPhoneNumberAssignment -Identity <user> -PhoneNumber <phone number> -PhoneNumberType CallingPlan | ||
``` | ||
|
||
For Operator Connect numbers: | ||
|
||
```PowerShell | ||
Set-CsPhoneNumberAssignment -Identity <user> -PhoneNumber <phone number> -PhoneNumberType OperatorConnect | ||
``` | ||
|
||
For Teams Phone Mobile numbers: | ||
|
||
```PowerShell | ||
Set-CsPhoneNumberAssignment -Identity <user> -PhoneNumber <phone number> -PhoneNumberType OperatorConnect | ||
``` | ||
|
||
For example: | ||
|
||
```PowerShell | ||
Set-CsPhoneNumberAssignment -Identity [email protected] -PhoneNumber "+14255550101" -PhoneNumberType CallingPlan | ||
Set-CsPhoneNumberAssignment -Identity [email protected] -PhoneNumber "+14255550102" -PhoneNumberType OperatorConnect | ||
``` | ||
|
||
> [!NOTE] | ||
> Because of the latency between Microsoft 365 and Teams, it can take up to 24 hours for users to be enabled. If the phone number isn't assigned correctly after 24 hours, see [Phone Number Service Center](https://pstnsd.powerappsportals.com/). | ||
> [!NOTE] | ||
> When you assign a phone number, the EnterpriseVoiceEnabled flag is automatically set to True. | ||
## Related topics | ||
|
||
[Manage phone numbers for your organization](/microsoftteams/manage-phone-numbers-for-your-organization) | ||
|