Forum Discussion
Issue with Teams 'Add a User to Group Chat' API call?
Hello AutomatonSolutionsRDE,
The request fails due to two issues: first, the @odata.type value was misspelled, causing Microsoft Graph to stop processing and return a misleading schema error. Second, an incorrect property was used instead of user@odata.bind. Correcting both issues resolves the problem. The proper request body must include the correct @odata.type, roles array, and the user@odata.bind reference to the target user.
{
"@odata.type": "#microsoft.graph.aadUserConversationMember",
"roles": [],
"user@odata.bind": "https://graph.microsoft.com/v1.0/users('USER_ID')"
}
Sayali, this is not correct. Apologies that my initial report was not more clear. This is the exact API call being sent, as you can see; the issues you pointed out are not present in the actual API call. it's following the correct format.
Response body:
{"error":{"code":"BadRequest","message":"The provided '#microsoft.graph.aadUserConversationMember' for 'odata.type' is not valid for this operation.","innerError":{"date":"2026-01-29T14:56:25","request-id":"8ef444c8-64e3-45db-80d4-2c0ea9e47902","client-request-id":"8ef444c8-64e3-45db-80d4-2c0ea9e47902"}}}
PPlease advise.