Set the Caller ID for a user
The Phone System in Office 365 provides a default caller ID that is the user's assigned telephone number. You can either change or block the caller ID (also called a Calling Line ID) for a user. You can learn more about how to use caller ID in your organization by going How can caller ID be used in your organization.
You can't block incoming calls currently in Skype for Business Online.
There are settings that you can change:
This is not for on-premises organizations with Lync or Skype for Business Server.
Change their outgoing caller ID You can replace a user's Caller ID, which by default is their telephone number, with another phone number. For example, you could change the user's Caller ID from their phone number to a main phone number for your business or change the user's Calling Line ID from their phone number to a main phone number for the legal department. You can change the Calling ID number to any Online service number (toll or toll-free).
If you want to use the Service parameter, you must specify a valid service number.
Block their outbound caller ID You can block the outgoing Caller ID from being sent on a user's outgoing PSTN calls. Doing this will block their phone number from being displayed on the phone of a person being called.
Block their incoming caller ID You can block a user from receiving Caller ID on any incoming PSTN calls.
Emergency calls will always send the user's telephone number (caller ID).
By default, all of these caller ID settings are turned off. This means that the Skype for Business Online user's phone number can be seen when that user makes a call to a PSTN phone.
To learn more about these settings and how you can use them, go How can caller ID be used in your organization.
Set your caller ID policy settings
For all of the Caller ID settings in Skype for Business Online, you must use Windows PowerShell and you can't use the Skype for Business admin center.
Verify and start Windows PowerShell
- Check that you are running Windows PowerShell version 3.0 or higher
To verify that you are running version 3.0 or higher: Start Menu > Windows PowerShell.
Check the version by typing Get-Host in the Windows PowerShell window.
If you don't have version 3.0 or higher, you need to download and install updates to Windows PowerShell. See Windows Management Framework 4.0 to download and update Windows PowerShell to version 4.0. Restart your computer when you are prompted.
You will also need to install the Windows PowerShell module for Skype for Business Online that enables you to create a remote Windows PowerShell session that connects to Skype for Business Online. This module, which is supported only on 64-bit computers, can be downloaded from the Microsoft Download Center at Windows PowerShell Module for Skype for Business Online. Restart your computer if you are prompted.
If you need to know more, see Connect to all Office 365 services in a single Windows PowerShell window.
- Start a Windows PowerShell session
From the Start Menu > Windows PowerShell.
In the Windows PowerShell window, connect to your Office 365 organization by running:
You only have to run the Import-Module command the first time you use the Skype for Business Online Windows PowerShell module.
Import-Module -Name SkypeOnlineConnector $credential = Get-Credential $session = New-CsOnlineSession -Credential $credential Import-PSSession $session
If you want more information about starting Windows PowerShell, see Connect to all Office 365 services in a single Windows PowerShell window or Set up your computer for Windows PowerShell.
See all of the caller ID policy settings in your organization
To view all of the caller ID policy settings in your organization, run:
See more examples and details for Get-CsCallingLineIdentity.
Create a new caller ID policy for your organization
To create a new caller ID policy that sets the caller ID to anonymous, run:
New-CsCallingLineIdentity -Identity Anonymous -Description "Anonymous policy" -CallingIDSubstitute Anonymous -EnableUserOverride $false
In all cases, the "Service Number" field should not include an initial "+".
See more examples and details for New-CsCallingLineIdentity.
To apply the new policy you created to Amos Marble, run:
Grant-CsCallingLineIdentity -Identity "firstname.lastname@example.org" -PolicyName Anonymous
See more on the Grant-CsCallingLineIdentity cmdlet.
If you have already created a policy, you can use the Set-CsCallingLineIdentity cmdlet to make changes to the existing policy, and then use the Grant-CsCallingLineIdentity cmdlet to apply the settings to your users.
Set it so the incoming caller ID is blocked
To block the incoming caller ID, run:
Set-CsCallingLineIdentity -Identity "Block Incoming" -BlockIncomingPstnCallerID $true -EnableUserOverride $true
See more examples and details for Set-CsCallingLineIdentity.
To apply the policy setting you created to a user in your organization, run:
Grant-CsCallingLineIdentity -Identity "email@example.com" -PolicyName "Block Incoming"
See more on the Grant-CsCallingLineIdentity cmdlet.
Remove a caller ID policy
To remove a policy from your organization, run:
Remove-CsCallingLineIdentity -Identity "My Caller ID Policy"
To remove a policy from a user, run:
Grant-CsCallingLineIdentity -Identity "firstname.lastname@example.org" -PolicyName $null
Want to know more about Windows PowerShell?
Windows PowerShell is all about managing users and what users are allowed or not allowed to do. With Windows PowerShell, you can manage Office 365 and Skype for Business Online using a single point of administration that can simplify your daily work, when you have multiple tasks to do. To get started with Windows PowerShell, see these topics:
Windows PowerShell has many advantages in speed, simplicity, and productivity over only using the Microsoft 365 admin center such as when you are making setting changes for many users at one time. Learn about these advantages in the following topics: