Share via

getChatMessage - Forbidden message "Invoked API requires Protected API access in application-only context" in list messages in a chat

Anonymous
2022-01-18T21:25:36+00:00

Hi Microsoft Support,

Please help to take a look at the below issue. I created a python daemon program and try to get the messages from Microsoft team chat. I followed the steps in the "list message in a chat" API. However, I got the error message "Forbidden" - "Invoked API requires Protected API access in application-only context... "

https://docs.microsoft.com/en-us/graph/api/chat-list-messages?view=graph-rest-1.0&tabs=http

I have setup a sandbox, registered an application, add the Chat.ReadAll, Chat.ReadWrite.All, Chat.Read, ChatReadWrite Permission and granted the admin consent to these permissions. I also submitted the "request form" for the Protected APIs in Microsoft Teams 2 weeks ago.

I am getting the Invoked API requires Protected API access in application-only context - forbidden error message.

Is that anything I missed or something incorrect. Thank you.

Microsoft Teams | Microsoft Teams for business | Teams and channels | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2022-01-19T06:45:12+00:00

Hi Wayne,

Greetings.

Thank you for raising your concern in this community.

I wish I could help you with that, However, there is a dedicated support forum for the graph API. They will be able to do some tests for you if necessary. From there you will get the appropriate support. Support - Microsoft Graph.

Thank you for your time and understanding.

Kind regards,

Mac

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful