AllowUserDeleteMessage
Parameter of CsTeamsMessagingPolicy
Description
Determines whether a user is allowed to delete their own messages. Set this to TRUE to allow. Set this to FALSE to prohibit. If this value is set to FALSE, the team owner will not be able to delete their own messages.
Characteristics
- Type
Boolean- Parameter sets
- (All)
Apply
# Required module: Install-Module MicrosoftTeams
Connect-MicrosoftTeams
Set-CsTeamsMessagingPolicy -Identity 'Global' -AllowUserDeleteMessage $false
Get-CsTeamsMessagingPolicy -Identity 'Global' | Select-Object Identity, AllowUserDeleteMessage Assign to users: Grant-CsTeamsMessagingPolicy Microsoft Learn documentation