Inconsistent result from Get-CsOnlineUser

565 views Asked by At

The property OnlineVoiceRoutingPolicy returned in powershell is inconsistent. Either i'm doing something wrong with when selecting based on identity, or theres a bug i'm unaware of.

When not selecting from identity i get something like this:

Get-CsOnlineUser | Select-Object -Property OnlineVoiceRoutingPolicy, UserPrincipalName

OnlineVoiceRoutingPolicy UserPrincipalName
------------------------ -----------------
DK                       [email protected]
...//other similar users

But when i use the -Identity argument:

Get-CsOnlineUser -Identity [email protected] | Select-Object -Property OnlineVoiceRoutingPolicy, UserPrincipalName

OnlineVoiceRoutingPolicy UserPrincipalName
------------------------ -----------------
                         [email protected]

This happens fo all users, if i get the collection of users, OnlineVoiceRoutingPolicy is correctly set, but if i get a specific user, it's blank.

Any suggestions as to why this happens ?

0

There are 0 answers