1:1 conversation on message extension retrieve members emails

Mohamad Najia 206 Reputation points
2020-06-22T19:06:14.413+00:00

Hello everyone,

So i created a message extension using bot framework v4.
What am trying to do is to retrieve members emails in 1:1 conversation using the message extension on OnTeamsMessagingExtensionSubmitActionAsync. However am getting 403 Forbidden.

The next step I tried to add the Bot to the conversation using AdaptiveCards and I get the following error

The bot is not part of the conversation roster

Moving forward to Microsoft Graph API as mentioned in https://learn.microsoft.com/en-us/graph/api/conversationmember-list?view=graph-rest-beta&tabs=csharp to use :

GraphServiceClient graphClient = new GraphServiceClient( authProvider );  
  
var members = await graphClient.Me.Chats["{id}"].Members  
 .Request()  
 .GetAsync();  

Now a new issue graphClient.Me.Chats in visual studio : IUserRequestBuilder doesn't not contain a definition for Chats.

I find it a little bit weird to not able to retrieve what's already obvious. I can see the contact email and name so the 403 is absurd in my own opinion or I might be doing something wrong.

Thank you

.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
842 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,105 questions
0 comments No comments
{count} vote

Accepted answer
  1. Mohamad Najia 206 Reputation points
    2020-06-23T02:20:01.19+00:00

    So the issue was I need to add the Microsoft.graph.beta from the package manage console Install-Package Microsoft.Graph.Beta -Version 0.19.0-preview. https://stackoverflow.com/questions/62521896/using-microsoft-graph-api-to-retrieve-chat-members

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.