logo
search
Others

How to Block an Inbound Mobile Number in Microsoft Teams

Maira MehtabMaira Mehtab Sep 27, 2026 869 views

Question details

The user needs to know how to block a specific inbound mobile number from calling their Microsoft Teams environment.

Product
Microsoft Teams
Device & OS
not provided
Scenario
Preventing unwanted contact or spam calls from a specific mobile number by setting up inbound call blocking.
Observed behavior
The Teams admin center lacks a direct graphical interface option to block individual inbound mobile numbers, requiring a different configuration approach.
Before you start

Ensure you have Microsoft Teams administrator privileges and the Microsoft Teams PowerShell module installed on your computer before attempting to configure blocked numbers.

Solution 1Recommended

Use Teams PowerShell to Block Inbound Calls

Since the Teams admin center does not provide a direct blocking feature, administrators must use Teams PowerShell to create a blocked number pattern.

Blocking a number at the tenant level depends on whether the number is a Teams-assigned PSTN number or simply a contact number stored in a Microsoft 365 profile. Only actual PSTN routing can be blocked using this method.

1
Open PowerShell as Administrator

Right-click the Start menu and select Windows PowerShell (Admin) or Terminal (Admin) to launch the command line with elevated privileges.

2
Connect to Microsoft Teams

Type the command 'Connect-MicrosoftTeams' and press Enter. A login prompt will appear; sign in with your Teams administrator credentials.

3
Create a blocked number pattern

Use the 'New-CsInboundBlockedNumberPattern' cmdlet to block the specific number. For example, run: New-CsInboundBlockedNumberPattern -Name "BlockSpamMobile" -Pattern "^\+1234567890$" (replace the digits with the exact mobile number you wish to block).

Number Formatting: Ensure you use the correct regular expression format for the phone number pattern, typically including the country code, to guarantee the block applies correctly to inbound PSTN calls.
Free Microsoft Office alternative

Switch to WPS Office for a Lightweight and Free Office Suite

While Microsoft Teams handles your corporate communications, managing your daily documents shouldn't be a hassle. WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office for your word processing, spreadsheets, and presentation needs.

  1. 1. Download WPS Office: Visit the official WPS website and click the 'Download' button to get the free installer.
  2. 2. Install the Application: Run the setup file and follow the straightforward on-screen instructions to install the suite.
  3. 3. Open Your Documents: Launch WPS Office and instantly open, edit, and save your existing Microsoft Office files without formatting loss.
Fully compatible with Microsoft Office formats (Word, Excel, PowerPoint).Lightweight installation ensures fast performance on any device OS.Familiar, easy-to-use tabbed interface for seamless migration from Microsoft 365.Free access to essential office tools and robust built-in PDF editing.
microsoft office alternative - wps office

Frequently Asked Questions

Can I block numbers directly in the Microsoft Teams Admin Center?

No, the Microsoft Teams admin center generally does not provide a direct graphical option to block an individual inbound mobile number. Administrators must use the Teams PowerShell module to configure block lists.

What is the difference between a Teams PSTN number and a Microsoft 365 profile number?

A PSTN number is officially assigned for Teams Calling to route external phone network calls, whereas a Microsoft 365 profile number is merely contact information stored in a user's directory profile. Inbound call blocking rules only apply to actual PSTN call routing.

Do I need special permissions to block an inbound caller in Teams?

Yes, configuring inbound blocked number patterns requires tenant administrator privileges and access to the Microsoft Teams PowerShell module.