en-US

AllowUserDeleteChat

Parameter of CsTeamsMessagingPolicy

Description

Turn this setting on to allow users to permanently delete their 1:1, group chat, and meeting chat as participants (this deletes the chat only for them, not other users in the chat). Set this to TRUE to allow. Set this to FALSE to prohibit.

Microsoft Learn documentation

Characteristics

Type
Boolean
Default value
TRUE
Parameter sets
(All)

Apply

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

Assign to users: Grant-CsTeamsMessagingPolicy Microsoft Learn documentation