I am testing Get Chat Microsoft Graph API (which is still in Beta) and it seems to work successfully when it is called from Graph Explorer (which uses an user token), instead when I call this API from Postman with an application token, I get 401 Unauthorized
with an Unknown Error
as response.
https://graph.microsoft.com/beta/users/<user-id>/chats/<conversation-id>
My App Registration on Azure has these permissions: And the decoded application token contains:
- "aud": "https://graph.microsoft.com",
- "roles": ["User.Read.All", "Chat.Read.All" ]
The same token it works for the Get User API
https://graph.microsoft.com/beta/users/<user-id>
Basically, it seems to have problems only the GET Chat API when called with an application token, although the documentation says it is supported. Am I missing something in the App Registration configuration?
EDIT
As I have already explained in the comments, this question doesn't help me, since:
- audit is correct
- permissions are present in the token and are granted by the admin in the App registration
- scope is correct
Should I check something else?
https://graph.microsoft.com/.default
and I have the requested permissions (of type Application) granted by the Admin. Should I check something else? – user2297037