Get "403 Forbidden - No authorization information present on the request" when i try to get joined teams

Jane Lin 20 Reputation points
2024-08-19T07:47:34.38+00:00

Hi,

I try to get joined teams with token:

https://graph.microsoft.com/v1.0/me/joinedTeams

but i get a 403 Forbidden response:

{
    "error": {
        "code": "Forbidden",
        "message": "No authorization information present on the request.",
        "innerError": {
            "date": "2024-08-19T07:17:21",
            "request-id": "004b1da7-702e-455e-9b93-f0396217203f",
            "client-request-id": "004b1da7-702e-455e-9b93-f0396217203f"
        }
    }
}

i can use the same token to get me/messages, and i also add team related permissions to the app

User's image

can anyone give me some suggestions to solve this issue?

thanks

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,952 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,828 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,201 questions
{count} votes

Accepted answer
  1. Hitesh Pachipulusu - MSFT 1,180 Reputation points Microsoft Vendor
    2024-08-19T09:26:34.6166667+00:00

    Hello Jane Lin,

    Thank you for contacting Microsoft Support!

    I have tested the same Graph API endpoint in postman using delegated permissions and able to fetch the response. Please find the below screenshot.

    image (7)

    It sounds like you’re encountering an authorization issue when trying to access the joined teams endpoint. Here are a few things you can check:

    1. Token Scope: Ensure that the token you’re using has the correct permissions. For accessing joined teams, you need the Team.ReadBasic.All permission.
    2. Token Validity: Verify that the token is still valid and hasn’t expired. Use a tool like jwt.io to decode your token. This will allow you to see the token’s payload.

    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 additional answers

Sort by: Most helpful

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.