Problem on add out-of-tenant user to a chat group with GraphApi
Hi,
I have a problem adding a out-of-tenant user to a chat.
I have follow the documentation at this link
https://learn.microsoft.com/en-us/graph/api/chat-post-members?view=graph-rest-1.0&tabs=http
the example 6 is my case, and I'm able to add a "normal" user or a in-tenant Guest User!
This is the payload body example:
{
"@odata.type": "#microsoft.graph.aadUserConversationMember",
"******@odata.bind": "https://graph.microsoft.com/v1.0/users/<out-of-tenant-userId>",
"roles": [
"owner"
],
"tenantId": "<tenantId of out-of-tenant userId specified on ******@odata.bind property>"
}
But doing the call I receive this error:
{
"error": {
"code": "Forbidden",
"message": "AclCheckFailed",
"innerError": {
"date": "2023-05-31T14:40:32",
"request-id": "02e6a983-042e-47ff-a518-62779bc82628",
"client-request-id":
"74783176-c048-da72-98bc-d3f556cbad54"
}
}
}
and if I try to get out-of-tenant user info executing the GET call
https://graph.microsoft.com/v1.0/users/<out-of-tenant-userId>
I receive this error:
{
"error": {
"code": "Request_ResourceNotFound",
"message": "Resource '<out-of-tenant userId>' does not exist or one of its queried reference-property objects are not present.",
"innerError": {
"date": "2023-05-31T15:22:17",
"request-id": "54e7949c-b314-4705-8f81-4632e3b17ea7",
"client-request-id": "74783176-c048-da72-98bc-d3f556cbad54"
}
}
}
Where I'm making a mistake?
There is some configuration on the application settings to permit to get out-of-tenant user info?
Thanks!