You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the "MultiTenant" support has been deprecated, I must deploy bots as "SingleTenant".
I had a logic which I must return the conversation members (GetConversationMembersAsync) and for a selected member I must send a private message (CreateConversationAsync and SendToConversationAsync).
But, starting from the GetConversationMembersAsync, it triggers this excepiton:
"Operation returned an invalid status code 'Unauthorized'"
I have the following setup:
The bot has a linked app registration (should I add new permissions there?) and such app registration is multi-tenant (I CANNOT MODIFY THIS)
The bot is prepared like this:
var credentials = new MicrosoftAppCredentials(botConfiguration.BotAppId.ToString(), botConfiguration.BotAppSecret);
var client = new ConnectorClient(botConfiguration.BotServiceUrl, credentials);
var channelAccount = new ChannelAccount(botConfiguration.BotId, botConfiguration.BotName);
var users = await client.Conversations.GetConversationMembersAsync(channelId);