question

AndrewOmondi-5314 avatar image
0 Votes"
AndrewOmondi-5314 asked AndrewOmondi-5314 commented

Unable to delete chat member if member is from a different tenant

I created a graph application that did the following:
-In tenant A, created a group chat (as user 1), and added user 1 (tenant A) and user 2 (Tenant A) to the chat
-Added user 3 from tenant B by AAD ID to the chat
-Attempted to remove user 3 from the chat using await m_graphClientUser.Chats[m_chatID].Members[memberID].Request().DeleteAsync();

When attempting to do this a 404 response is returned with the following message

 Code: NotFound
 Message: The requested instance was not found. Id:'xxxxxxxxxxxx'.
 Inner error:
     AdditionalData:
     date: 2021-08-20T16:15:47
     request-id: 5a8a9d07-9214-4fc9-be94-c001d255ddf6
     client-request-id: 5a8a9d07-9214-4fc9-be94-c001d255ddf6
 ClientRequestId: 5a8a9d07-9214-4fc9-be94-c001d255ddf6


Expected behavior
User should be removed from chat. This works if the user is in tenant A, but not if they were added in another tenant.
This is the same if the same is tried via graph explorer by following the documentation here


Is it possible to delete a member from a chat via graph API if the user exists in a different tenant?

Sourced from https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1111

office-teams-windows-itprooffice-teams-app-devmicrosoft-graph-teamwork
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AndrewOmondi-5314

Our forum is mainly focused on the general issue of Microsoft Teams troubleshooting. According to your description, your issue is more related to Teams API development, which is not in our support scope. I will also add teams-app-dev tag to your thread. Thanks for your understanding and patience and hope you get better response!

For Teams client, I did a test in my environment and we can remove users from our chat.

0 Votes 0 ·

Thanks for the help @JimmyYang-MSFT

0 Votes 0 ·

1 Answer

RamjotSingh avatar image
0 Votes"
RamjotSingh answered

Deletion and addition of federated chat members isn't supported at the moment. We are working on adding the support. ETA ~2-3 months.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.