When enabling a user to Microsoft Teams Direct Routing (let’s say with a phone number – DDI “+44zzzzzzzzzz”) you could have the following error
Filter failed to return unique result, “[SipAddress : sip:yyyyy@xxxx.com] [LineURI :
tel:+44zzzzzzzzzz] [PrivateLine : tel:+44zzzzzzzzzz] “InvalidOperation: (Set-CsUser:String) [Set-CsUser], InvalidOperationException
+ FullyQualifiedErrorId : ProcessRecord,Microsoft.Rtc.Management.AD.Cmdlets.SetOcsUserCmdlet
+ PSComputerName : api.interfaces.records.teams.microsoft.com
The error is usually due to the phone number (DDI) being already assigned to another user.
To identify who is the user with the DDI assigned you can use the script below

Read More

Directory Status is a piece of information shown in the Teams Admin Center.
The different statuses are not explained in a clear way in the Microsoft documentation.
Unlicensed and Unknown) and to the fact that some users are not shown at all.
In a nutshell, Directory Status depends on the different values inside the InterpretedUserType parameter

Read More