Thanks for asking question! When adding Teams users to a chat thread, Graph API can be used to search by user name to get the user object ID which is what is needed.
Also, You may want to know that the ability to use ACS to chat with a Teams user is currently only available in limited private preview.
You can submit this form to request participation in the preview and we will review your scenario(s) and evaluate your participation in the preview.
Note: Private Preview APIs and SDKs are provided without a service-level agreement, and are not appropriate for production workloads and should only be used with test users and test data. Certain features might not be supported or might have constrained capabilities.
For more information, see Supplemental Terms of Use for Microsoft Azure Previews.
Recommended document : Teams calling and chat interoperability - An Azure Communication Services concept document | Microsoft Learn
Let us know if further query or issue remains.