Skip to content

GetConversationMembersAsync, CreateConversationAsync and SendToConversationAsync now returns Unauthorized #6900

@RicBruIAI

Description

@RicBruIAI

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);

How can I fix this? This is very hurgent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions