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