Share via

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 | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other

Answer accepted by question author
  1. Hitesh Pachipulusu - MSFT 3,640 Reputation points Microsoft External Staff
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.