Swap a new user for the existing DDI number
-
OSS/BSS Answers
Access Control Admin Audit B3Network Master Account Channel App Contract App Customer App Discount App Edge Server File Management Finance App Invoice App Number Management Payment Portal Settings Price List Product App Release V2 SMS Gateway Supplier App Support Center Support Hub Business Hub Sales Hub
- App Model - Organization Management
- App Model - Communication Apps Answers
- License Model - Organization Management
-
License Model - CPaaS Solution Answers
Phone System - Admin Guide Phone System - End-user Guide Mobile App Desktop App Web Phone Auto Attendant - Admin Guide Developer Hub - Admin Guide Microsoft Teams Operator Connect - Admin Guide Microsoft Teams Direct Routing - Admin Guide Contact Center - Supervisor Guide Contact Center - Agent Guide Omni-Channel SIP Trunk CPaaS - SIP Trunk Power SIP Trunk CPaaS Fax Contact Dashboard Campaign File Explorer
- Telcoflow
- Integrations Answers
- Updated Regulations
- Ideas Portal
Table of Contents
There are cases when your agents are left and replaced by newcomers. In that cases, you can assign the existing DDI Number to the new user without purchasing extra.
In order to do so, please follow the steps below:
1. Add new user(s) and Assign licenses on the Microsoft 365 Admin Center
Visit this link for detailed instruction.
2. Create new user(s) to replace the existing user on the CPaaS Portal
a. Create new User(s):
- Go to Manage Organization
- Choose Members tab
- Click Create
- The member will receive the email with the title 'Your account has been created!' with a link to set the password.
![](https://d2x3xhvgiqkx42.cloudfront.net/c94ab348-5fb1-4c1d-89b1-fa79e3e916d0/81ec6e6f-2b1b-45dc-9193-b23c4a10d966/2022/04/22/297271e0-bbf2-42bb-8aa6-90a5facf2ed5/53f0435e-36c3-469e-8624-c630302fc57f.gif)
Note:
For more detailed instruction, please visit this link.
b. Swap CPaaS user(s):
- Go to Manage Organization > choose the Licenses tab
- Select Phone System
- Find the account that you want to change the user > click on Assigned User > Manage
- Choose the new user > Reassign
![](https://d2x3xhvgiqkx42.cloudfront.net/c94ab348-5fb1-4c1d-89b1-fa79e3e916d0/81ec6e6f-2b1b-45dc-9193-b23c4a10d966/2022/04/22/6264a1cb-4c32-441d-8173-bdd5722b34e3/1a608179-9b9e-409e-bf40-90eba821b229.gif)
Note:
When reassigning user, all of the previous application settings will remain the same.
3. Link the new MS Team account with the current DDI number
Once you finish the above steps, you can link the MS Teams account with the reassigned number.
- Go to Application Settings > View System settings > Microsoft Teams
- Select the DDI number that you want to link with the new user
- Key in the new MS Teams account that is created on step 1
![](https://d2x3xhvgiqkx42.cloudfront.net/c94ab348-5fb1-4c1d-89b1-fa79e3e916d0/81ec6e6f-2b1b-45dc-9193-b23c4a10d966/2022/04/22/01d7b615-376c-487b-980c-2495b197def2/dfd6e49b-5ad5-4a85-95ff-5d57d4dc200f.gif)
4. Generate PowerShell Script
To generate the Powershell Script:
- On the Microsoft Teams tab, click on the 3 dots icon
- Choose View Script
- Select Copy Script
**Check the next step to know which lines are needed to copy.
![](https://d2x3xhvgiqkx42.cloudfront.net/c94ab348-5fb1-4c1d-89b1-fa79e3e916d0/81ec6e6f-2b1b-45dc-9193-b23c4a10d966/2022/04/22/9b9eefc5-4490-4c4e-a064-3d3fcdf09a88/719e17d4-497f-4191-8f0d-1b6b58591372.gif)
5. Run Powershell
Note:
Users must be familiar with Microsoft Powershell script commands to execute the changes without affecting other commands. If unsure please approach a Microsoft certified expert.
Step 1: Open the PowerShell:
![](https://d2x3xhvgiqkx42.cloudfront.net/c94ab348-5fb1-4c1d-89b1-fa79e3e916d0/81ec6e6f-2b1b-45dc-9193-b23c4a10d966/2021/09/14/5b01739a-98fa-4e03-ad2e-c1c2c48977d8/ebfcc77c-92ee-4392-b172-222ec05ab608.jpeg)
Step 2: Paste the generated Power Shell script for swapping new User(s):
You should run the following command:
-
Start Power Shell as Administrator (or with Administrator Privileges):
Install-Module -Name MicrosoftTeams -RequiredVersion 2.3.1
Import-Module MicrosoftTeams -RequiredVersion 2.3.1
$credential = Get-Credential
Connect-MicrosoftTeams -Credential $credential -
Unassign number(s) from the leaving User:
Set-CsUser -Identity <Leaving UserID>@<DomainID> -EnterpriseVoiceEnabled $false
Set-CsUser -Identity <Leaving UserID>@<DomainID> -OnPremLineURI $null -
Swap a new user for the existing DDI number:
Set-CsUser -identity "<New UserID>@<DomainID>" -EnterpriseVoiceEnabled $true -HostedVoicemail $true -OnPremlineURI tel:+<Existing DDI Number>
Grant-CsTeamsCallingPolicy -PolicyName AllowCalling -Identity "<New UserID>@<DomainID>"
Grant-CsOnlineVoiceRoutingPolicy -Identity <New UserID>@<DomainID> -PolicyName B3
![](https://d2x3xhvgiqkx42.cloudfront.net/c94ab348-5fb1-4c1d-89b1-fa79e3e916d0/81ec6e6f-2b1b-45dc-9193-b23c4a10d966/2021/09/14/9ab3dc42-63b0-4f9f-821f-648df3578f22/5f4e4918-6958-4ce0-95f7-bf4d1d7d2e05.png)