Skip to content

How do I send a response back to MS Teams from my bot backend which is hosted in azure App Services #6689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AKA-Goodchap opened this issue Apr 23, 2025 · 0 comments

Comments

@AKA-Goodchap
Copy link

I'm encountering a 401 Unauthorized error when attempting to send a response back to a Microsoft Teams chat from my bot.

In my setup, I’m manually sending the response using a token generated via a Service Principal (SPN), which has been assigned the Azure Bot Contributor role in the IAM of the Azure Bot resource.

Due to company policy, I cannot use the Microsoft App ID and password (client secret) for authentication. Instead, I’m relying on the SPN to act on behalf of the Bot Service.

Despite the role assignment, the token doesn’t seem to be authorized to post messages to Teams. Has anyone faced a similar issue or know what specific permissions or configurations might be missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant