Bot Framework API: Is User Login Required to Create Conversation for Preinstalled Teams App

Nandhini T 65 Reputation points
2024-12-17T02:16:29.4333333+00:00

I have a multi-tenant Teams app, which is a notification-only app. I am using the Bot Framework REST APIs to send notifications.

The app is configured as a preinstalled app in the users' personal scope in the Teams Admin Center (screenshot provided below).
User's image

However, when I call the /v3/conversations endpoint, it returns the error: "Bot not installed in user's scope", even though the bot is marked as a preinstalled app for the organization in the Admin Center.

Is it mandatory for the user to be logged in and open the app at least once manually to create a conversation, even if the app is preinstalled?

Microsoft Teams | Development
Microsoft Teams | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Prasad-MSFT 10,266 Reputation points Microsoft External Staff Moderator
    2024-12-17T05:57:49.56+00:00

    Yes, it is mandatory for the user to log in and open the app at least once to create a conversation, even if the app is preinstalled. The error message "Bot not installed in user's scope" indicates that the bot has not been activated for the user yet. This activation typically occurs when the user opens the app for the first time, which establishes the necessary conversation ID and other metadata required for sending notifications.

    Thanks, 

    Prasad Das

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

    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 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.