
How to block a specific external user in Teams
- Maxime Hiez
- Teams , Tutorial
- 07 Feb, 2025
Introduction
Microsoft recently introduced a new feature for Teams administrators to block specific external users. This update aims to strengthen security and protect internal members of the organization from unwanted or malicious communications.
User blocking feature
Traditionally, administrators could use the remove API (removeallaccessforuser API) to prevent a malicious user from sending messages back to the same victim. However, this method was not always enough to completely block the user. Now, a new user blocking API allows administrators to block an external user more effectively, preventing any contact resuming.
Feature implementation
To use this new capability, a Microsoft Teams administrator must sign in to the Microsoft Teams Admin Center by opening their web browser to https://admin.teams.microsoft.com, and in the left menu, click Users, then External access. By default, the Block specific users from communicating with people in my organization feature is disabled.
By activating the switch, the Block a user option appears, and it then becomes possible to manually add the Teams addresses to block.
Configuration in PowerShell
You can also configure the blocking functionality via the following PowerShell commands :
Set-CsTeamsExternalAccessConfiguration -Identity Global -BlockExternalAccessUserAccess $true
Set-CsTeamsExternalAccessConfiguration -Identity Global -BlockedUsers @("user1@domain.com", "user2@domain.com")
Conclusion
This new user blocking feature in Microsoft Teams provides an additional layer of security, allowing administrators to better protect their organization from unwanted external communications. By making this measure more accessible and effective, Microsoft continues to improve the security and management of communications within Teams.
Sources
Microsoft Learn - Set-CsTeamsExternalAccessConfiguration
Microsoft 365 Roadmap - ID 411138
Did you enjoy this post ? If you have any questions, comments or suggestions, please feel free to send me a message from the contact form.
Don’t forget to follow us and share this post.