AclCheckFailed when creating teams group chat via graph api

Stefano Frediani 0 Reputation points
2023-09-08T07:39:18.2966667+00:00

Hello,

i have a problem when consume API POST https://graph.microsoft.com/v1.0/chats

the request body is

{ 	"topic": "TEST CHAT *", 	"chatType": "group", 	"members": [ 		{ 			"@odata.type": "#microsoft.graph.aadUserConversationMember", 			"roles": [ 				"owner" 			], 			"******@odata.bind": "https://graph.microsoft.com/v1.0/users('0ec7580b-a1e5-4c4c-8e23-966760ea048b')" 		}, 		{ 			"@odata.type": "#microsoft.graph.aadUserConversationMember", 			"roles": [ 				"guest" 			], 			"******@odata.bind": "https://graph.microsoft.com/v1.0/users('e1ec8365-2225-4aeb-889d-5b3772a67c05')" 		}, 		{ 			"@odata.type": "#microsoft.graph.aadUserConversationMember", 			"roles": [ 				"guest" 			], 			"******@odata.bind": "https://graph.microsoft.com/v1.0/users('b55a6948-5a12-4a6d-b439-78f6f6e86b97')" 		}, 		{ 			"@odata.type": "#microsoft.graph.aadUserConversationMember", 			"roles": [ 				"guest" 			], 			"******@odata.bind": "https://graph.microsoft.com/v1.0/users('88db29ad-ca08-4c74-805b-449525d7049d')" 		} 	] }

the response is

{
    "error": {
        "code": "Forbidden",
        "message": "AclCheckFailed",
        "innerError": {
            "message": "InitiatorNotAllowed-Create Thread: Initiator (8:orgid:0ec7580b-a1e5-4c4c-8e23-966760ea048b) is removed from roster",
            "code": "40400",
            "innerError": {},
            "date": "2023-09-08T07:25:10",
            "request-id": "6f42c85a-e827-4346-85ec-6c3f36fa8c13",
            "client-request-id": "6f42c85a-e827-4346-85ec-6c3f36fa8c13"
        }
    }
}
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,894 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,522 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.