Hello Guys,
I want to create a flow that adds a user to a group in exchange. This group is connect to a shared mailbox. The users have the corresponding permissions in the mailbox.
I use a custom connector that takes json uses the $batch endpoint.
My JSON looks as follows:
{
"requests": [
{
"id": "1",
"url": "groups/{Group-ID}/members/{User-ID}",
"method": "POST",
"body": {},
"headers": {
"content-type": "application/json"
}
}
]
}
I get the following result back
{
"responses": [
{
"id": "1",
"status": 405,
"headers": {
"Cache-Control": "no-cache",
"x-ms-resource-unit": "1",
"Content-Type": "application/json"
},
"body": {
"error": {
"code": "Request_BadRequest",
"message": "Specified HTTP method is not allowed for the request target.",
"innerError": {
"date": "2023-08-07T12:43:01",
"request-id": "5a289d8e-cf24-4334-8b57-cc9d13af5723",
"client-request-id": "5a289d8e-cf24-4334-8b57-cc9d13af5723"
}
}
}
}
]
}
The permissions for the app-registration in Azure AD look like this:

Do you have any idea how to solve the issue?