Flexible Caller ID Suppression
1. Configure Teams Phone System with PowerShell
- You will need Windows PowerShell and the "Microsoft Teams" PowerShell module for configuration.
- PowerShell must be run with administrator rights to install the module.
- You can also perform the configuration in the Teams Admin Center.
1.1 Preparation
1.1.1 Install/Update the "Microsoft Teams" module
-
Open PowerShell as administrator.
-
Install or update the Microsoft Teams module with the following command:
Set-ExecutionPolicy RemoteSigned -Force
Install-Module MicrosoftTeams -RequiredVersion 7.1.0 -AllowClobber
- Finish PowerShell after installing the module.
You can skip this step if your module is up to date.
1.2 Configuration
1.2.1 Start session
- Reopen PowerShell (PowerShell as administrator does not need)
- Import the Team PowerShell module
Import-Module MicrosoftTeams
- To start working with the Microsoft Teams PowerShell module, type the following command:
Connect-MicrosoftTeams
- The following is a pop-up for Microsoft 365 authentication. Your user must be assigned the Microsoft role "Global Administrator" or "Team Administrator".
1.2.1 Create Caller ID Policy
New-CsCallerIDPolicy -Identity "AllowHideCallerID" -Description "based on sipcall teams instruction: allow anonymous for users" -EnableUserOverride $true
You can customize the Identity
and Description
parameters as needed.
Option
If you want to set calls to anonymous by default, also include the parameter -CallingIDSubstitute "Anonymous"
.
New-CsCallerIDPolicy -Identity "AllowHideCallerID" -Description "based on sipcall teams instruction: allow anonymous for users" -CallingIDSubstitute Anonymous -EnableUserOverride $true
1.2.2 Verify Caller ID Policy
Get-CsCallerIDPolicy -Identity "AllowHideCallerID"
1.2.3 End session
End the PowerShell session:
Disconnect-MicrosoftTeams
1.2 Assign the policy to users
You can assign the policy either individually or to multiple users in a batch:
- Assign individually
- Assign as batch
Grant a user permission for the policy:
Grant-CsCallingLineIdentity -Identity "YourUsername@YourCompany.com" -PolicyName "AllowHideCallerID"
Example:
Grant-CsCallingLineIdentity -Identity "homer.simpson@thesimpsons.ch" -PolicyName "AllowHideCallerID"
Grant-CsCallingLineIdentity -Identity "marge.simpson@thesimpsons.ch" -PolicyName "AllowHideCallerID"
Grant-CsCallingLineIdentity -Identity "bart.simpson@thesimpsons.ch" -PolicyName "AllowHideCallerID"
Replace YourUsername1@YourCompany.ch
, YourUsername2@YourCompany.ch
with your own users and add more if needed.
$users_ids = @("YourUsername1@YourCompany.ch","YourUsername2@YourCompany.ch")
New-CsBatchPolicyAssignmentOperation -PolicyType CsCallingLineIdentity -PolicyName "AllowHideCallerID" -Identity $users_ids -OperationName "Batch assign allow hide caller id"
Example:
$users_ids = @("homer.simpson@thesimpsons.ch","marge.simpson@thesimpsons.ch","bart.simpson@thesimpsons.ch","lisa.simpson@thesimpsons.ch")
New-CsBatchPolicyAssignmentOperation -PolicyType CsCallingLineIdentity -PolicyName "AllowHideCallerID" -Identity $users_ids -OperationName "20240418 batch ticket aaa-bb-123"
2. User Instructions
Once the administrator has configured and assigned the calling policy to the user, the user can enable or disable caller ID suppression.
The following steps are required to suppress the phone number or hide the caller ID:
- Open Microsoft Teams on your computer or mobile device.
- In Settings, navigate to the "Calls" section and enable the "Caller ID" option.
2.3 Select the phone number of the person you want to call. Every call will now be displayed as "anonymous" to the recipient.
Give Microsoft a few minutes after making changes to the settings.
When caller ID is enabled, the phone number is suppressed.
Test anonymous calls
After setup, the administrator or user should verify that caller ID is actually being suppressed:
-
Make a test call: Call a known number to confirm that your caller ID is hidden.
-
Check the result: Make sure the call appears as anonymous.
Additional Resources
You can find more product information, downloads, and support on the manufacturer's website: