I'm looking at blocking onmicrosoft.com and its subdomains for inbound Teams calls and messages to reduce spam. A quick test with BlockAllSubdomains enabled seemed to work, but could this disrupt legitimate traffic? I'd rather avoid an organization-wide allowlist if possible.
Can I block onmicrosoft.com in Teams without breaking legitimate external chats?
Answers
A domain block can cut off some of that traffic, but don't assume every legitimate external user has a custom domain on their account. Some organizations do use onmicrosoft.com addresses, so there is a real chance of blocking someone you want to reach.
Check your external communication records for those addresses first, then test both calls and chats with representative external accounts. The source discussion doesn't establish exactly how the policy handles every combination of primary and secondary domains, so I'd verify that before rolling it out broadly.
Reply to this answer
Look at the external access setting for communication with trial Teams tenants too. Turning that off may reduce unwanted contact without blocking the whole onmicrosoft.com namespace. It's a narrower control, though, so it won't necessarily stop spam from other tenants.
Reply to this answer
Blocking the default domain is only one layer. Attackers can use registered domains too, so the problem may come back under different addresses.
An external domain allowlist is more restrictive and needs maintenance, but it's worth considering if unwanted calls and chats keep getting through. Existing external communication records can help build a starting list. Review the domains before allowing them rather than treating every past contact as trusted.
Reply to this answer
Alongside the access policy, consider monitoring incoming external chats and calls for display names using terms such as support, help desk or tech. That won't prove a contact is malicious, but it can flag impersonation attempts for review, including ones from custom domains.
Reply to this answer
Add your answer
Answers are reviewed before publication.
6t!spindleapron_394:
That also means planning how users request access to a new external domain. Otherwise legitimate new contacts may get stuck.