en-US

AllowOwnerDeleteMessage

Parameter of CsTeamsMessagingPolicy

Description

Determines whether owners are allowed to delete all the messages in their team. Set this to TRUE to allow. Set this to FALSE to prohibit.

Microsoft Learn documentation

Characteristics

Type
Boolean
Parameter sets
(All)

Apply

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

Assign to users: Grant-CsTeamsMessagingPolicy Microsoft Learn documentation