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

@AKA-Goodchap

Description

@AKA-Goodchap

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions