Forum Discussion
The bot is not a part of the conversation roster error in new chat(Chat->New)
fabin10
Could you please share the manifest file?
- fabin10Aug 09, 2021Brass Contributor
Hi,
This is the manifest.json file
{ "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.9/MicrosoftTeams.schema.json", "manifestVersion": "1.9", "version": "1.0.1", "id": "<ID>", "packageName": "<packageName>", "developer": { "name": "chatapp", "websiteUrl": "", "privacyUrl": "", "termsOfUseUrl": "" }, "icons": { "color": "color.png", "outline": "outline.png" }, "name": { "short": "Chatapp", "full": "" }, "description": { "short": "This is a sample chat app", "full": "This is a sample chat app." }, "accentColor": "#FFFFFF", "configurableTabs": [ { "configurationUrl": "<URL>", "canUpdateConfiguration": false, "scopes": [ "team" ], "context": [ "channelTab" ] } ], "staticTabs": [ { "entityId": "id", "name": "Website", "contentUrl": "<URL>", "scopes": [ "personal" ] }, { "entityId": "conversations", "scopes": [ "personal" ] }, { "entityId": "about", "scopes": [ "personal" ] } ], "bots": [ { "botId": "<BOTID>", "scopes": [ "personal", "team" ], "supportsFiles": false, "isNotificationOnly": false } ], "composeExtensions": [ { "botId": "<BOTID>", "canUpdateConfiguration": true, "commands": [ { "id": "search", "type": "query", "title": "search", "description": "", "initialRun": false, "fetchTask": false, "context": [ "commandBox", "compose" ], "parameters": [ { "name": "query", "title": "Search Text", "description": "Search Text", "inputType": "text" } ] } ] } ], "permissions": [ "identity", "messageTeamMembers" ], "validDomains": [ "" ] }
- Prasad_Das-MSFTAug 09, 2021Microsoft
fabin10
The bot MUST be installed to the Team in order to get the roster for that Team. If the bot is not installed in the Team, you will get a "The bot is not part of the conversation roster" error.
TeamsInfo.getMember() will not get the mail id from Chat->New Chat.- fabin10Aug 09, 2021Brass Contributor
Thanks for the updates. So, it's not possible to get the mail id using TeamsInfo.getMember() from Chat->New Chat.? or will it only be possible to get the mail id when the bot is connected to a channel? Prasad_Das-MSFT
- _r4m_Aug 05, 2021Copper Contributor
I've the same issue, even using botframework-connector lib:
const credentials = new MicrosoftAppCredentials(process.env.BotId, process.env.BotPassword); const token = await credentials.getToken(); const client = new ConnectorClient(credentials, { baseUri: context.activity.serviceUrl }); MicrosoftAppCredentials.trustServiceUrl(context.activity.serviceUrl); let singleMemberDetailsResponse = await client.conversations.getConversationMembers(context.activity.conversation.id);
the response is a 403 bot is not part of the conversation roster.
Adding the bot to the conversation seems possible via action commands, popping-up the user with a request to add the bot. But in the case of search commands, it is not clear if this is feasible.