CmdID / PowerShell / Cmdlets / Get
Get-CsTeamsMessagingConfiguration
TeamsMessagingConfiguration determines the messaging settings for users. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 2 parameters Its page in the reference
Parameters
-FilterEnables you to use wildcard characters in order to return a collection of tenant messaging configuration settings.-IdentitySpecifies the collection of tenant messaging configuration settings to be returned.