Forum Discussion
VinAgg
Dec 23, 2020Copper Contributor
How to get User teams id using Microsoft Graph API or via any another method
I want to extract user id of a user to send a proactive message via a bot. I'm able to find the basic details of the user using graph API but unable to find a way where i can query user teams id which looks something like this ->
09:1YuoZA9DSJPbW3ITaCUEHAlIhyLYt8vgFLm9X3dB-L9wQ5YbMZEWi
I'm not sure whether this id is only needed to send a message to a user or any basic detail will work to send the notification for ex-: User Principle Name, Azure Active Directory ID etc.
- Hi VinAgg
Hopefully this will help to answer your question
https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/send-proactive-messages?tabs=dotnet#examples
This specific section is what I think you need
https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/send-proactive-messages?tabs=dotnet#get-the-user-id-or-teamchannel-id
Hope that helps
Best, Chris
- Hi VinAgg
Hopefully this will help to answer your question
https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/send-proactive-messages?tabs=dotnet#examples
This specific section is what I think you need
https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/send-proactive-messages?tabs=dotnet#get-the-user-id-or-teamchannel-id
Hope that helps
Best, Chris