How to get a user's Teams ID without app installation or directly from Azure to send direct chat messages?
Hi everyone,
We are developing an internal communication tool that integrates with Microsoft Teams. One key feature is the ability to send direct chat messages to users from our bot. However, we are facing the following challenges:
Is it possible to obtain a user's Teams ID without requiring them to install the app? Currently, we are using the Microsoft Graph API, but it seems prior interaction with the app is needed to capture the Teams ID.
If we already have the users' email addresses, is there a way for our bot to send direct chat messages to those users without requiring the app to be installed?
Can the Teams ID be retrieved directly from Azure Active Directory (AAD)? For example, by using Microsoft Graph APIs to query user information in AAD and map it to their Teams ID.
Our goal is to make communication seamless for companies where not all users may actively install apps or engage directly with Teams integrations.
Any guidance on permissions, configurations, or alternative methods would be greatly appreciated.
Thanks in advance for your help and suggestions!