Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • License Model - CPaaS Solution Answers
  • Microsoft Teams Direct Routing - Admin Guide

Swap a new user for the existing DDI number

Written by B3Networks Academy

Updated at June 2nd, 2023

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • 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
    General Account Settings Payment and Credits Billing & Invoices Developer Tools Members & Teams Subscription Management Audit & Reports
  • App Model - Communication Apps Answers
    Bizphone BizPhone Desktop Application Bizphone Mobile Application Wallboard SIP Fax Global DNC File Explorer Virtual Line Call Recording Direct Line SMS Marketing
  • License Model - Organization Management
    General Account Settings Payment & Credits Audit & Reports Email Call Rules & Holidays Members & Teams Numbers Tab Billing & Invoices Organization Connect CPaaS - DNC Security Policy Security Groups Security Events Tab
  • 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 CPaaS Hotdesking Contact Campaign File Explorer Power Mobile App Files App
  • Telcoflow
  • Integrations Answers
    Freshdesk MS Teams - Bizphone NewRock
  • Updated Regulations
  • Ideas Portal
+ More

Table of Contents

1. Add new user(s) and Assign licenses on the Microsoft 365 Admin Center 2. Create new user(s) to replace the existing user on the CPaaS Portal Note: Note: 3. Link the new MS Team account with the current DDI number 4. Generate PowerShell Script 5. Run Powershell Note:

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):

  1. Go to Manage Organization
  2. Choose Members tab
  3. Click Create
  4. The member will receive the email with the title 'Your account has been created!' with a link to set the password. 

Note:

For more detailed instruction, please visit this link.

 

b. Swap CPaaS user(s):

  1. Go to Manage Organization > choose the Licenses tab
  2. Select Phone System
  3. Find the account that you want to change the user > click on Assigned User > Manage
  4. Choose the new user > Reassign

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.

  1. Go to Application Settings > View System settings > Microsoft Teams 
  2. Select the DDI number that you want to link with the new user
  3. Key in the new MS Teams account that is created on step 1

4. Generate PowerShell Script

To generate the Powershell Script:

  1. On the Microsoft Teams tab, click on the 3 dots icon
  2. Choose View Script
  3. Select Copy Script

**Check the next step to know which lines are needed to copy.

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:

 
 

Step 2: Paste the generated Power Shell script for swapping new User(s):

You should run the following command:

  1. 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
  2. Unassign number(s) from the leaving User:
    Set-CsUser -Identity <Leaving UserID>@<DomainID> -EnterpriseVoiceEnabled $false
    Set-CsUser -Identity <Leaving UserID>@<DomainID> -OnPremLineURI $null
  3. 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
 
 
ddi exchange

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Integrated Instruction - Full Automation
  • Integrated Instruction - Full Manual
  • Prerequisites
  • Comparison of Integration Types

© B3NETWORKS PTE LTD. All Rights Reserved.

Data Policy

Service Level Agreement

Expand