Forum Discussion

antoinedeb's avatar
antoinedeb
Copper Contributor
May 27, 2022

Cannot access teams from Graph API

Hello,

I cannot create and query teams in Teams using the Graph API.

 

It seems like an API error because the Team is visible in Teams for Windows.

 

Steps to reproduce :

 

  • Create a Team using: https://graph.microsoft.com/v1.0/teams
  • When I check the creation operation the API returns 404 error: https://graph.microsoft.com/v1.0/teams/%7Bteam-id%7D/operations/%7Boperation-id%7D
  • When I query the team by ID the API returns 404 error: https://graph.microsoft.com/v1.0/teams
  • However when I query the group by ID the API returns the group without errors: 
  • https://graph.microsoft.com/v1.0/teams

Error when getting the existing team :

 

{
    "error": {
        "code": "NotFound",
        "message": "No team found with Group Id b97baca3-5f1c-4df9-957e-84565abd339a",
        "innerError": {
            "message": "No team found with Group Id b97baca3-5f1c-4df9-957e-84565abd339a",
            "code": "ItemNotFound",
            "innerError": {},
            "date": "2022-05-27T15:15:48",
            "request-id": "1589738d-3a4b-4a8a-824d-31383bb5a2c4",
            "client-request-id": "ffaf5d2e-d477-d8a6-63b0-a48b9f0dcbe1"
        }
    }
}

 

5 Replies

No RepliesBe the first to reply

Resources