I'm building an Entra ID App with delegated permissions and currently encountering problems with the chat and channels endpoints (https://graph.microsoft.com/v1.0/chats and https://graph.microsoft.com/v1.0/joinedTeams).
The issue is that im receiving a 401 Error with the response:
{
"error": {
"code": "Unauthorized",
"message": "UnknownError",
"innerError": {
"code": "Unauthorized",
"date": "2025-04-07T15:58:10",
"request-id": "3b025224-725d-4263-b880-e6dfb04490b7",
"client-request-id": "3b025224-725d-4263-b880-e6dfb04490b7"
}
}
}
I used the same token for https://graph.microsoft.com/v1.0/me and it works fine also the jwt token shows me I should be authorized to request chats: "scp": "Channel.ReadBasic.All ChannelMessage.Send Chat.Create Chat.Read Chat.ReadBasic Chat.ReadWrite email openid profile Team.ReadBasic.All User.ReadBasic.All".
I'm very grateful for any help to come over this issue quickly.
When you have deeper knowledge in this, it would be amazing if you could share resources or infos to better understand how to let other organizations use my Entra ID app. I allowed it in multiple settings but encountered the problem that when I request the /users endpoint, I can only see accounts that connected to my app but not from their entire organization.