Getting Missing scope permissions on the request. API requires one of 'Chat.ReadBasic, Chat.Read, Chat.ReadWrite'. Scopes on the request 'openid, profile, User.Read, email'" error in MS graph

Mani 446 Reputation points
2023-06-08T11:28:08.2966667+00:00

Hello experts,

I'm new to this AP registrations /MS graph explorer and my requirement is to export the teams chat data of one of the user.

For that I created an application with the name of MS graph and added permissions as bellow

User's image

And when I try to search for chat, I'm getting the below error

User's image

Can someone suggest me what I had missed here, so that i will implement them to get the requirement.

Thanks in advance

Microsoft Security Microsoft Graph
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2023-06-08T15:39:45.76+00:00

    The permissions are granted on a specific application, in your scenario only to the "MS Graph" app you've created. The Graph explorer tool, which you are using for you second screenshot above, has a different application ID, and thus needs to have the permissions added separately. You can do so by hitting the Modify Permissions button above, then consenting to the required permission(s).

    1 person found this answer helpful.

  2. CarlZhao-MSFT 46,371 Reputation points
    2023-06-09T06:48:42.1066667+00:00

    Hi @Mani

    If you are trying to get all messages from all chats that a user is a participant in, then you should grant the calling app one of the Chat.Read.All or Chat.ReadWrite.All application permissions, delegated permissions are not yet supported.

    User's image

    Also note that this API is a protected API. Before using application permissions to call this API, you must first fill out the request form.

    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.


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.