How to get a user's Teams ID without app installation or directly from Azure to send direct chat messages?

Andrés Ángel | NUNSYS 0 Reputation points
2025-01-27T16:30:14.9966667+00:00

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!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,990 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,544 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.