My requirement is to add a user to MS Teams via Rest API. So I am using endpoint and parameters:
https://login.microsoftonline.com/********/oauth2/v2.0/token
Body:
'@odata.type':'#microsoft.graph.aadUserConversationMember'
'roles':'[]'
'user@odata.bind':'https://graph.microsoft.com/v1.0/users('*************')
This threw me "InternalServerError". I have no idea why I am getting this error. The complete error looks like:
"code": "InternalServerError"
"message": "Failed to execute request."
Did anyone face the same scenario I am totally confused. How to get rid of it?


