I am trying to get chat message using graph API of my application for signed in user with delegated permissions

Suraj Dengale 45 Reputation points
2024-02-28T13:26:37.5166667+00:00

Hi team, I am trying to get the chat messages of signed-in user using Graph API but it's giving me missing scope permissions(as shown in below screenshot) though I had given the required delegated permissions for my application(check attached sccrenshot). How can I resolve this issue? as this is blocker for me. please help so I can read the chat messages of the chatbot and also send chat messages to the bot.User's image

User's image

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,785 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 41,126 Reputation points
    2024-02-29T02:59:24.87+00:00

    Hi @Suraj Dengale

    This error means that your app is missing one of the Chat.ReadBasic, Chat.Read and Chat.ReadWrite permissions, please ensure that your user or admin has dynamically consented to these permissions when logged in, or click "Grant admin consent for xxxxxx" button to grant admin consent.

    You can use jwt.ms to decode your access token and check the scp claim to see the list of permissions the current token has.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.