Get all public channel message

Kedar Kekan 21 Reputation points
2022-05-30T11:26:53.527+00:00

I am trying to get message from all public channel even from ones which i am not a part of.
I am getting 403 "code": "Forbidden", "message": "UnknownError" error.
I have created an application on https://portal.azure.com/ which is having all the permissions needed for this operation
206742-image.png

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sheena-MSFT 1,736 Reputation points
    2022-05-30T12:08:10.453+00:00

    Hi @Kedar Kekan ,

    Before calling this API for fetching channel messages you must request access. For details, see Protected APIs in Microsoft Teams.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


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.