Hi Jose Ruz - The above error occurs when the app is not installed in the user's personal scope. App needs to be installed in the user's personal scope for the bot to send messages. We tested this scenario with guest user and received the same error as you. Later, we installed the bot for the user, and we were able to get the conversation id successfully.
- Install the Bot for the Guest User: Before sending messages, you need to install the bot in the user's personal scope. https://learn.microsoft.com/en-us/graph/api/userteamwork-post-installedapps?view=graph-rest-1.0&tabs=http
POST https://graph.microsoft.com/v1.0/users/{user-id}/teamwork/installedApps
Content-Type: application/json
Authorization: Bearer {token}
{
"teamsApp@odata.bind": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/{teams-app-id}"
}
- Once the installation is successful, call the https://smba.trafficmanager.net/teams/v3/conversations endpoint again with guest user.
- You will get the conversation_id.
Thanks,
Meghana Peddamma
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.