Teams Messaging Policy

%3CLINGO-SUB%20id%3D%22lingo-sub-2211251%22%20slang%3D%22en-US%22%3ETeams%20Messaging%20Policy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2211251%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECould%20you%20please%20share%20how%20to%20get%20via%20PS%20the%20users%20assigned%20to%20a%20specific%20Messaging%20Policy%3F%3C%2FP%3E%3CP%3EI%20see%20in%20Teams%20Admin%20console%20you%20can%20only%20add%20users%20but%20not%20seeing%20the%20list%20or%20remove%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20the%20command%26nbsp%3B%3CSPAN%20class%3D%22hljs-pscommand%22%3EGet-CsTeamsMessagingPolicy%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%26nbsp%3Blooks%20deprectated%20as%20the%20module%20SkypeForBusiness%20looks%20seems%20not%20available%20anymore%2C%20is%20that%20the%20case%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-parameter%22%3EThanks!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2211251%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EConversations%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMeetings%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMessaging%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

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?

 

Thanks!

 

 

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"'