Forbidden Error When Accessing Teams Chat Messages via Application

Calvin Zolovoski 135 Reputation points
2025-07-28T08:55:04.91+00:00

I created a Python daemon to retrieve messages from a Microsoft Teams chat using the “List messages in a chat” API, but I’m receiving a “Forbidden – Invoked API requires Protected API access in application-only context” error.

I’ve registered the app, added and admin-consented to Chat.ReadAll, Chat.ReadWrite.All, Chat.Read, and Chat.ReadWrite permissions. I also submitted the Protected API access request form

What should I do

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

0 comments No comments

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.