Skip to content

Commit

Permalink
Merge pull request #10866 from MicrosoftDocs/repo_sync_working_branch
Browse files Browse the repository at this point in the history
Switched order of PowerShell instructions to appear at bottom of article.
  • Loading branch information
temanteleary authored Sep 30, 2024
2 parents 607150d + 2dd033b commit 7f02208
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions Teams/assign-change-or-remove-a-phone-number-for-a-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 john@contoso.com -PhoneNumber "+14255550101" -PhoneNumberType CallingPlan
Set-CsPhoneNumberAssignment -Identity jack@contoso.com -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:
Expand Down Expand Up @@ -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 john@contoso.com -PhoneNumber "+14255550101" -PhoneNumberType CallingPlan
Set-CsPhoneNumberAssignment -Identity jack@contoso.com -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)
Expand Down

0 comments on commit 7f02208

Please sign in to comment.