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')"
}
Incorrect. You are referring to changes I made to the post for security reasons. Here is a screenshot of the call being made:
This exactly follows the convention in the documentation. Why isn't it working? (
https://learn.microsoft.com/en-us/graph/api/chat-post-members?view=graph-rest-1.0&tabs=http)
Please don't just ask an AI. The AIs all say the same identical thing and they're wrong. Can anyone ACTUALLY explain this?
Error Message:
{"error":{"code":"BadRequest","message":"The provided '#microsoft.graph.aadUserConversationMember' for 'odata.type' is not valid for this operation.","innerError":{"date":"2026-02-10T17:59:50","request-id":"7b28c192-7906-40b1-94d7-dd3abb5577c3","client-request-id":"7b28c192-7906-40b1-94d7-dd3abb5577c3"}}}