Feb 27 2024 11:11 AM
Hi, I am building a bot that can be installed into both the Team and Personal scope (RSC permissions). Once installed to a team, the bot needs to be able to message members of that team without first needing each member to install the bot themselves. I have successfully sent a message from the bot to myself (as the installer of the app), however, when I try and send a message to another member of the team I get the following error "Bot is not installed in user's personal scope".
I am using the `CloudAdapter` class and the `createConversationAsync` method
from the botbuilder sdk (node/javascript)
Can anyone help? I've been going around in circles for weeks trying to figure it out
Feb 28 2024 02:00 AM - edited Feb 28 2024 02:01 AM
Hi @richturnbull - Could you please refer this sample once - https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-conversation/csharp. The above sample sends messages to all the members of team but this does not use RSC permissions.
Feb 28 2024 03:39 AM
@Dinesh-MSFT Are you saying it's not possible with RSC? I'm just struggling to believe that a MS Teams app is that restrictive.. If it's not using RSC permissions then I'm assuming you are using Admin Consent?
Also do you have any examples in javascript? We're struggling to decipher the C# example. Thanks
Mar 01 2024 02:12 AM
@richturnbull - We do not have exact sample for your requirements. Please refer the nodeJS sample and the other sample which uses RSC permissions.