question

24788213 avatar image
0 Votes"
24788213 asked 24788213 commented

UnknownError when i am trying to get channels messages

When i send a request to https://graph.microsoft.com/v1.0/teams/9334db10-d4f8-4b3f-a72c-4214b1b5605b/channels/19:a5c2ac230982400cad44d2249481b43b@thread.tacv2/messages i get this response:

80251-image.png


with a response status code : 403

I have tried this request with different channels and teams ids but the result is the same.


My API permissions are these:

80204-image.png


I would appreciate it if I had a solution to my problem or some other way to find the messages of the channels.

microsoft-graph-teamwork
image.png (12.5 KiB)
image.png (32.5 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I see that you are consuming one of the teams protected APIs. Have you requested for their access?


0 Votes 0 ·

I mean is your app approved to access the teams protected APIs. Quoting from list channel message docs: Before calling this API with application permissions, you must request access. For details, see Protected APIs in Microsoft Teams.



1 Vote 1 ·

Yes, you are right, I did not read the article carefully and did not take into account the request for the rights of evil protected IPA. Thank.Yes, you are right, I did not read the article carefully and did not take into account the request for the rights of evil protected IPA. Thank.

1 Vote 1 ·

Yes, i'm using admin permission for the аpplication:

80542-image.png

And from the article about channel-list-messages

80465-image.png


0 Votes 0 ·

0 Answers