group teams policy not appearing in teams user powershell output

It’s a question of Get-CsOnlineUser showing certain values in fields and not in others. And this all depends on the Teams policy, if it’s a global or per-user policy.

Using the Online User PS

I had a customer who questioned why, when looking at the output from a Get-CsOnlineUser command, did they not see some policies that were assigned to that user.

get-csonlineuser -Identity meganb@M365x499999.onmicrosoft.com

It outputs this part and we can see some of the policies:

TeamsCallParkPolicy                  : CallParkPolicyTest
TeamsCallingPolicy                   : 
TeamsChannelsPolicy                  : 

So, that is an individual’s output from PowerShell (a snippet).

Policy for a user shows a different story

BUT when we use Get-CsUserPolicyAssignment to get the assigned policies assigned to that user:

Get-CsUserPolicyAssignment -Identity meganb@M365x499999.onmicrosoft.com

We can see this result:

TeamsCallingPolicy             CallPolicyTest             {CallPolicyTest}            
TeamsCallParkPolicy            CallParkPolicyTest         {CallParkPolicyTest}        
TeamsMessagingPolicy           TestMessagingPolicy        {TestMessagingPolicy}       
LocationProfile                US                         {US}                        
VoicePolicy                    HybridVoice                {HybridVoice}               
TeamsChannelsPolicy            TestGrpPolicy              {TestGrpPolicy}             
TeamsMeetingPolicy             CustomGrpMeetingPolicy     {CustomGrpMeetingPolicy} 

What does it all mean?

The TeamsCallParkPolicy is a per-user assignment, so it gets seen in the Get-CsOnlineUser output, but TeamsCallingPolicy & TeamsChannelsPolicy are group policies, and aren’t seen in the per-user output of Get-CsOnlineUser. But it is seen Get-CsUserPolicyAssignment (which gets all types of policies).

Leave a Reply

Your email address will not be published. Required fields are marked *