Unable to create MS teams group using graph API

Vaibhav-A Mankar 65 Reputation points
2023-08-07T10:41:38.5666667+00:00

We are trying to create MS Teams group using graph API with below permission. But we are getting

The apps catalog does not contain any app with Teams app id 'xxxxxxxxxxxxxxxxxxxxx'.


{
  "chatType": "group",
  "topic": "Group chat title",

  "members": [
    {
      "@odata.type": "#microsoft.graph.aadUserConversationMember",
      "roles": ["owner"],
      "******@odata.bind": "https://graph.microsoft.com/v1.0/users('******@dbgdev.db.com')"
    }
  ],
   "installedApps": [
        {
            "******@odata.bind": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('xxxxxxx')"
        }
    ]
}

Response:

{
    "error": {
        "code": "BadRequest",
        "message": "The apps catalog does not contain any app with Teams app id 'xxxxxxxxxx'.",
        "innerError": {
            "date": "2023-08-07T10:34:18",
            "request-id": "efd5151c-a132-4692-b8ee-b4e8302f8745",
            "client-request-id": "efd5151c-a132-4692-b8ee-b4e8302f8745"
        }
    }
}
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
{count} votes

Answer accepted by question author
  1. Anonymous
    2023-08-08T08:54:27.97+00:00

    Please make sure that the app id you are passing is the generated app ID of the catalog app and not the externalId.

    You need to pass the id property of https://learn.microsoft.com/en-us/graph/api/appcatalogs-list-teamsapps?view=graph-rest-1.0&tabs=http

    User's image

    Thanks, 

    Meghana

    ************************************************************************* 

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.  

    1 person found this answer helpful.
    0 comments No comments

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.