Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Hi,
Based on your description, this behavior can be expected depending on the type of external chat.
The /users/{id}/chats/getAllMessages Teams Export API is intended to export messages that are available to your tenant. For federated (External Access) chats that were initiated from another tenant, those conversations may not be returned by the Export API from your tenant, even if one of your users participated in the chat.
Could you please confirm whether the external user is:
- Using External access (federation), or
- Added as a B2B guest in your tenant?
If this is an External access (federation) scenario, there isn’t a different Export API endpoint to retrieve those conversations if they are not returned by getAllMessages.
If you can share:
- whether this is a 1:1 or group chat,
- whether the external user is a federated user or a guest,
- and whether you’re using the Microsoft Teams Export API (/users/{id}/chats/getAllMessages),
I will take a closer look and see if there are any additional considerations specific to your scenario.