Information
This policy controls whether external domains are allowed, blocked or permitted based on an allowlist or denylist. When external domains are allowed, users in your organization can chat, add users to meetings, and use audio video conferencing with users in external organizations.
The recommended state is Allow only specific external domains or Block all external domains
Allowlisting external domains that an organization is collaborating with allows for stringent controls over who an organization's users are allowed to make contact with.
Some real-world attacks and exploits delivered via Teams over external access channels include:
- DarkGate malware
- Social engineering / Phishing attacks by "Midnight Blizzard"
- GIFShell
- Username enumeration
Solution
To remediate using the UI:
- Navigate to Microsoft Teams admin center
https://admin.teams.microsoft.com/
.
- Click to expand Users select External access
- Under Teams and Skype for Business users in external organizations set Choose which external domains your users have access to to one of the following:
- Allow only specific external domains
- Block all external domains
- Click Save
To remediate using PowerShell:
- Connect to Teams PowerShell using Connect-MicrosoftTeams
- Run one of the following commands:
- To allow only specific external domains run these commands replacing the example domains with approved domains:
$list = New-Object Collections.Generic.List[String]
$list.add("contoso.com")
$list.add("fabrikam.com")
Set-CsTenantFederationConfiguration -AllowFederatedUsers $true -AllowedDomainsAsAList $list
- To block all external domains:
Set-CsTenantFederationConfiguration -AllowFederatedUsers $false
Impact:
The impact in terms of the type of collaboration users are allowed to participate in and the I.T. resources expended to manage an allowlist will increase. If a user attempts to join the inviting organization's meeting they will be prevented from joining unless they were created as a guest in EntraID or their domain was added to the allowed external domains list.