Forum Discussion
create user token to teams bot
The grant type is client_credential, I think the token is app token instead of user token.
And when I check the token by getting /me, the response is the info of the account which i login in. What I want is that assign a user token to the bot so the bot can send chat messages to any member in thread without user joining in.
Microsoft Teams bots are conversational bots that run repetitive automated tasks done by the users, such as customer service. The user needs to sign in multiple times without single sign-on (SSO) authentication. With SSO authentication methods, the users don't need to sign in to the bot multiple times.
You can refer the below sample-https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-conversation-sso-quickstart/csharp_dotnetcore/BotConversationSsoQuickstart
Step by step guide-Build a bot with SSO authentication - Teams | Microsoft Learn