When try to remove members from team channel by using API. But can’t able to remove the user. Showing an Invalid user ID but the user ID is correct only.
The API is used is “https://graph.microsoft.com/beta/teams/{id}/channels/{id}/members/{id}”
Error Message: "code": "BadRequest",\r\n "message": "Invalid id . How to solve this?
Can you please elaborate this issue
Sure @SamanGuruge
Need to remove an member form the Microsoft Team Channel. The channel type is Private. I used Delete Conversation Member API. The API is “[https://graph.microsoft.com/beta/teams/{id}/channels/{id}/members/{id}“. I passed the Team ID, Channel ID and Members ID in the URL. I check the ID’s which are correct only. But getting an error message as
message”: "{\r\n "error": {\r\n "code": "BadRequest",\r\n "message": "Invalid id ‘###’ provided.",\r\n "innerError": {\r\n "request-id": "",\r\n "date": "2020-06-10T06:20:48"\r\n }\r\n }\r\n}
Hi Ganesh,
I am working on Channel API, but to add member to privet channel.
If you or anybody in this forum were able to add member using UiPath “HTTP Request” activity then requesting you to kindly validate if the below process is correct.
API I am using:- “https://graph.microsoft.com/v1.0/teams/<team_id>/channels/<channel_id>/members”
Request Type: - POST
Body I am using: -
“{”“@odata.type”“: “”microsoft.graph.aadUserConversationMember”“,
““roles””:[”“owner”“],
““user@odata.bind””:”“https://graph.microsoft.com/v1.0/users(‘**********************’)”"
}"
.
I ma getting following error message in response: -
"{"error":{"code":"BadRequest","message":"‘microsoft.graph.aadUserConversationMember’ OData type not supported.","innerError":{"date":"2024-08-16T13:16:45","request-id":"","client-request-id":"
NOTE: - I have replaced few information with “*”
Thanks in advance.