Teams Messaging Policy

New Contributor

Hi All,


Could you please share how to get via PS the users assigned to a specific Messaging Policy?

I see in Teams Admin console you can only add users but not seeing the list or remove them.


Also, the command Get-CsTeamsMessagingPolicy looks deprectated as the module SkypeForBusiness looks seems not available anymore, is that the case?





1 Reply
The cmdlet is available as part of the Teams module now, download it and you will be able to use both Teams and SfB cmdlets.

As to finding out which users a given policy is assigned to, easiest method is to use the -Filter parameter:

Get-CsOnlineUser -Filter 'TeamsMessagingPolicy -eq "Policy Name"'