en-US

EnableTeamsConsumerAccess

Parameter of CsExternalAccessPolicy

Description

> Applicable: Lync Server 2010, Lync Server 2013, Skype for Business Online, Skype for Business Server 2015, Skype for Business Server 2019

(Microsoft Teams Only) Indicates whether the user is allowed to communicate with people who have who are using Teams with an account that's not managed by an organization.

To enable just for a selected set of users, use the Set-CsExternalAccessPolicy cmdlet to update the global policy, setting the value to False. Then assign selected users a policy with federation enabled.

Read Manage external access in Microsoft Teams to get more information about the effect of this parameter in Microsoft Teams. The default value is True.

Microsoft Learn documentation

Characteristics

Type
Boolean
Default value
True
Parameter sets
(All)

Apply

# Required module: Install-Module MicrosoftTeams
Connect-MicrosoftTeams
Set-CsExternalAccessPolicy -Identity 'Global' -EnableTeamsConsumerAccess $false
Get-CsExternalAccessPolicy -Identity 'Global' | Select-Object Identity, EnableTeamsConsumerAccess

Assign to users: Grant-CsExternalAccessPolicy Microsoft Learn documentation