App didn't worked as expected

IBN 4,416 Reputation points
2022-07-04T12:07:33.793+00:00

Hello

Please i need your help on this issue.

I have a user who a global Admin having a problem with App permission.

The App was added in azure for permissions and he has access to the Public teams Channel.

He was expecting to get a message using Microsoft GraphQL API call but he got the error below

'error': { 'code': 'Forbidden', 'message': 'Unknown Error', 'inner Error': { 'date': '2022-06-30T00:48:11', 'request-id': '25360f0f-xxxx-xxxx-xxxx-78fa36f30f1c', 'client-request-id': '25360f0f-xxxx-xxxx-xxxx-78fa36f30f1c' } } }

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,165 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,079 questions
{count} votes

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,811 Reputation points
    2022-09-16T23:29:55.477+00:00

    Hi @IBN

    Based on the information you've provided, it seems you're trying to get the list of messages in a channel of team in which you're not a member. Please make sure you use Application Permissions and have request access to use this Protected API.

    Refer- https://learn.microsoft.com/en-us/graph/teams-protected-apis

    Please fill this request form for the same.

    Hope this helps.

    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.

    0 comments No comments

Your answer

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