0

I'm encountering a 401 Unauthorized error when attempting to send a response back to a Microsoft Teams chat from my bot(i haven't used bot framework sdk, simple bot in python).

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?

1
  • Please add more details about your ask. Commented May 2 at 6:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.