Additional task-related features and issues within Microsoft Teams for business
Rajdeep, you can use the following.
get-csonlineuser | where-object {$_.lineuri -like "tel:+123*"}| select userprincipalname,lineuri
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Folks,
Happy new year ๐
We have an requirement to get users based on the number starts with a particular pattern.
We know a command which is Get-CsOnlineUser -Filter "LineURI -like 'tel:+12031231234'"
This will give result only for +12031231234, we need a command which will filter numbers starts with +1203......
So any number starts with +1203 we will get all the entries.
Could you please help me with this ?
Thanks in Advance
Additional task-related features and issues within Microsoft Teams for business
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Rajdeep, you can use the following.
get-csonlineuser | where-object {$_.lineuri -like "tel:+123*"}| select userprincipalname,lineuri
Hi Rajdeep
Iโm Garcia and I will be happy to help you with your question, I am a Microsoft consumer like you. Additionally, this is a user support forum and Independent Advisors cannot access accounts.
Try using the -like operator with a wildcard (*) in your filter.
Get-CsOnlineUser -Filter "LineURI -like 'tel:+1203*'"
I hope this helps
To avoid misunderstanding, this is a public user-to-user support forum. We're users helping other users. We do not work for Microsoft and have no access to any user account so there is nothing we can do or check from within the forum. We have no input on Microsoft's policies, procedures, or design decisions.
Give back to the Community. Help the next person with this issue by indicating if this reply solved your problem. Click Yes or No below.