0
votes

when I'm trying to test ms teams api it always returns 404
For example - the simplest query: GET https://graph.microsoft.com/v1.0/me/joinedTeams

{
    "error": {
        "code": "ResourceNotFound",
        "message": "Resource not found.",
        "innerError": {
            "date": "2020-07-24T08:47:53",
            "request-id": "0ae3aa34-4aa5-4609-ac6b-01c2aba09b24"
        }
    }
}

I made test team, added couple of test users etc.

1
did you login first? how do you send the request? I'm getting InvalidAuthenticationToken when I use your link...Homungus
Yes, of course. I'm using Microsoft Graph Explorer: developer.microsoft.com/en-us/graph/graph-explorerajonk
Are you part of any team?Trinetra-MSFT
Yes, I made couple of just to be sure.ajonk
is it giving this error -inside- graph explorer, or only in your own code? If only in your code, it might be that you're using Application permissions rather than Delegated...the "me" endpoints only work with Delegated, as they require a "user" context, so to speak (i.e. what is "me" for an application)Hilton Giesenow

1 Answers

1
votes

The problem was that I was using personal ms account instead of admin account from azure portal.