How to get the specific userId for communication between a bot and a particular user

Occasional Visitor

A microsoft teams bot uses a specific user id for communication between bot and a user. This ID is unique for communication between these two. I am trying to get this ID for proactive messaging. I have seen many samples where we get this ID from a particular team channel or between a group chat. But, the problem is i want to get the userID of a user who is not a part of this chat.


Example -: If an employee submits a request using bot then his manager should be notified about that request proactively by the bot. How can i achieve that using the Application scope.

The bot is installed for bot employee and manager.

I couldn't find any example where i can send a message from bot to user of AD or any teams user for that matter even if the bot is installed for them.


1 Reply