en-US

AllowUrlPreviews

Parameter of CsTeamsMessagingPolicy

Description

Use this setting to turn automatic URL previewing on or off in messages. Set this to TRUE to turn on. Set this to FALSE to turn off.

Note that Optional Connected Experiences must be also enabled for URL previews to be allowed.

Microsoft Learn documentation

Characteristics

Type
Boolean
Parameter sets
(All)

Apply

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

Assign to users: Grant-CsTeamsMessagingPolicy Microsoft Learn documentation