Assign Skype for Business and Microsoft Teams licenses

This article gives you tips about assigning licenses to your users for features like Audio Conferencing, Phone System and Calling Plans. It also provides scripts for assigning licenses in bulk.

IMPORTANT: See Skype for Business and Microsoft Teams add-on licensing for information about what licenses you need to buy and how to buy them - depending on your Office 365 plan - so users get Audio Conferencing, toll free numbers, and the ability to call phone numbers outside your business.

Phone System and Calling Plans: Tips and scripts for assigning licenses

What you need to know before assigning Phone System and Calling Plan licenses

  • IMPORTANT: For you to see the Voice option in the left navigation in the Skype for Business admin center, you must first buy at least one Enterprise E5 license, one Phone System add-on license, or one Audio Conferencing add-on license.

  • Using on-premises PSTN connectivity for hybrid users? If so, you only need to assign a Phone System license. You should NOT assign a Calling Plan.

  • Latency after assigning licenses: Because of the latency between Office 365 and Skype for Business Online, it can possibly take up to 24 hours for a user to be assigned a Calling Plan after you assign a license. If after 24 hours, the user isn't assigned a Calling Plan please call us.

  • Error messages: You will get an error message if you haven’t purchased the correct number of licenses. If you need to buy more Calling Plan licenses, choose Buy more.

  • Next steps: After you assign Calling Plan licenses to your users, you will need to get your phone numbers for your organization, and then assign those numbers to the people in your organization. For step-by-step instructions, see Set up Calling Plans.

How to assign a Phone System and Calling Plan license to one user

The steps are the same as assigning an Office 365 license. See Assign licenses to users in Office 365 for business licenses.

How to assign Phone System and Calling Plan licenses in bulk

  1. Install the Microsoft Online Services Sign-In Assistant for IT Professionals RTW. Don't have the module installed? See Microsoft Online Services Sign-In Assistant for IT Professionals RTW to download it.

  2. Install the Windows Azure Active Directory Module. Don’t have the module installed? See Manage Azure AD using Windows PowerShell for download instructions and cmdlet syntax.

  3. Once you get the modules installed, use the Windows PowerShell command prompt and the following syntax to assign the licenses to your users:

    This example assigns an Enterprise E3 license along with a Phone System and a Domestic Calling Plan license.

    The name of the licenses or product names in the script are listed in italics text (see Phone System and Calling Plan product names or SKUs used for scripting, after the example).

    #Create a text file with a single row containing list of UserPrincipalName (UPN) of users to license. The MSOLservice uses UPN to license user accounts in Office 365.
    #Example of text file:
    #user1@domain.com
    #user2@domain.com
    
    #Import Module
    ipmo MSOnline
    
    #Authenticate to MSOLservice.
    Connect-MSOLService
    
    #File prompt to select the userlist txt file.
    [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null
      $OFD = New-Object System.Windows.Forms.OpenFileDialog
      $OFD.filter = "text files (*.*)| *.txt"
      $OFD.ShowDialog() | Out-Null
      $OFD.filename
    
    If ($OFD.filename -eq '')
    {
    Write-Host "You did not choose a file. Try again" -ForegroundColor White -BackgroundColor Red
    }
    
    #Create a variable of all users.
    $users = Get-Content $OFD.filename
    
    #License each user in the $users variable.
    #Use MCOPSTN1 for PSTN Domestic Calling and MCOPSTN2 for Domestic and International Calling.
    foreach ($user in $users)
        {
        Write-host "Assigning License: $user"
        Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "companyname:ENTERPRISEPACK" -ErrorAction SilentlyContinue
        Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "companyname:MCOEV" -ErrorAction SilentlyContinue
        Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "companyname:MCOPSTN1" -ErrorAction SilentlyContinue
        } 
    

Phone System and Calling Plans product names or SKUs used for scripting

Product name

SKU part name

Enterprise E5 (with Phone System)

ENTERPRISEPREMIUM

Enterprise E3

ENTERPRISEPACK

Enterprise E1

STANDARDPACK

Skype for Business Online Standalone Plan 2

MCOSTANDARD

Phone System

MCOEV

International Calling Plan

MCOPSTN2

Domestic Calling Plan

MCOPSTN1

Communication Credits

MCOPSTNPP

Audio Conferencing: Tips and scripts for assigning licenses

What you need to know before assigning Audio Conferencing licenses

  • Third-party audio conferencing provider: If someone is already set up to use a third-party audio conferencing provider, when you assign them an Audio Conferencing license, they will be changed to use Microsoft as the audio conferencing provider. You can change them back to the third-party provider.

  • Next steps: After you assign Audio Conferencing licenses, you need to assign a audio conferencing provider. Do one of the following:

How to assign an Audio Conferencing license to one user

The steps are the same as assigning an Office 365 license. See Assign licenses to users in Office 365 for business licenses.

How to assign Audio Conferencing licenses in bulk

  1. Download and install Microsoft Online Services Sign-In Assistant for IT Professionals RTW.

  2. Download and install the Windows Azure Active Directory Module. See Manage Azure AD using Windows PowerShell for download instructions and cmdlet syntax.

    Once you get the modules installed, use the Windows PowerShell command prompt and the following syntax to assign the licenses to your users:

    The name of the licenses or product names in the script are listed in italics text. See Audio conferencing product names or SKUs used for scripting for all of the product names.

    This example assigns an Enterprise E3 license along with an Audio Conferencing license.

    #Create a text file with a single row containing list of UserPrincipalName (UPN) of users to license. The MSOLservice uses UPN to license user accounts in Office 365.
    #Example of text file:
    #user1@domain.com
    #user2@domain.com
    
    #Import Module
    ipmo MSOnline
    
    #Authenticate to MSOLservice
    Connect-MSOLService
    
    #File prompt to select the userlist txt file
    [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null
      $OFD = New-Object System.Windows.Forms.OpenFileDialog
      $OFD.filter = "text files (*.*)| *.txt"
      $OFD.ShowDialog() | Out-Null
      $OFD.filename
    
    If ($OFD.filename -eq '')
    {
    Write-Host "You did not choose a file. Try again" -ForegroundColor White -BackgroundColor Red
    }
    
    #Create a variable of all users
    $users = Get-Content $OFD.filename
    
    #License each user in the $users variable
    foreach ($user in $users)
        {
        Write-host "Assigning License: $user"
        Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "companyname:ENTERPRISEPACK" -ErrorAction SilentlyContinue
        Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "companyname:MCOMEETADV" -ErrorAction SilentlyContinue
        } 
    

Audio Conferencing product names or SKUs used for scripting

Product name

SKU part name

Audio Conferencing

MCOMEETADV

Skype for Business Online Standalone Plan 2

MCOSTANDARD

Enterprise E1

STANDARDPACK

Enterprise E3

ENTERPRISEPACK

Enterprise E5 (without Audio Conferencing)

ENTERPRISEPREMIUM_NOPSTNCONF

Enterprise E5 (with Audio Conferencing)

ENTERPRISEPREMIUM

Communications Credits

What you need to know before assigning Communications Credits licenses

  • Enterprise E5 customers: Even if your users are assigned Enterprise E5 licenses, we still recommend that you assign them Communication Credits licenses.

  • Next steps: After you assign these licenses, you will need to get your phone numbers for your organization, and then assign those numbers to the people in your organization. For step-by-step instructions, see Set up Calling Plans.

How to assign a Communications Credits license to one user

The steps are the same as assigning an Office 365 license. See Assign licenses to users in Office 365 for business licenses.

How to assign Communication Credits licenses in bulk

Take a look at the sample script for assigning Audio Conferencing licenses. Update it with the info for assigning Communications Credits licenses.

Related articles

Set up Audio Conferencing for Skype for Business and Microsoft Teams

Set up Calling Plans

Add funds and manage Communications Credits

Expand your skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×