Mar 04 2021 02:21 PM
I have created a test application which is requesting adminconsent from a MS teams admin with the following scopes:
openid offline_access channelmessage.read.group channelmessage.read.all chat.read chat.readbasic chat.readwrite user.read.all channel.readbasic.all directory.read.all group.read.all groupmember.read.all organization.read.all people.read.all presence.read.all team.readbasic.all
I am using an application token to fetch ms teams organization data like users, channels, teams etc. I have managed to fetch with Graph API the user, channel, teams data of an organization,
but when I tried to fetch messages
with
https://graph.microsoft.com/v1.0/teams/team_id/channels/channel_id/messages
I am getting the following error:
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"date": "2021-03-03T22:23:47",
"request-id": "a279044a-ab9e-4c18-af71-5a65ea7cee86",
"client-request-id": "a279044a-ab9e-4c18-af71-5a65ea7cee86"
}
}
}
Mar 04 2021 11:46 PM
SolutionHi @christosjubile, the List Channel Messages is under Protected APIs in Microsoft Teams. Before calling this API with application permissions, you must request access. To request access to these protected APIs, complete the following request form.
Mar 09 2021 10:36 AM
Mar 09 2021 11:52 AM
Apr 13 2021 12:25 PM