The application asked for scope 'chat.read.all' that doesn't exist on the resource

tomoyuki owada 21 Reputation points
2022-08-30T09:32:41.293+00:00

Hi,

I'm working on implementing an application that is to extract chat logs of Teams.
My application is based on quick start for UWP and it perfectly worked.

However when I change scopes to read chats:

private string[] scopes = new string[] { "user.read.all", "chat.read.all" };

After logging in, it says:

AADSTS650053: The application '...' asked for scope 'chat.read.all' that doesn't exist on the resource '00000003-0000-0000-c000-000000000000'. Contact the app vendor.

Are there somewhere wrong in my implementations?

Thank you.

Microsoft Security | Microsoft Authenticator
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Bhanu Kiran 3,616 Reputation points
    2022-08-30T13:43:43.497+00:00

    Hello @tomoyuki owada

    If you are using delegated permission make sure you use "Chat.Read" instead of "Chat.Read.All" as this permission does not exist in delegated permissions.

    236098-image.png

    If you are using Application Permission make sure you have requested for Protect API as per this document.

    If you have not requested, please follow this document to access the request form.

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Carlos Solís Salazar 18,191 Reputation points MVP Volunteer Moderator
    2022-08-30T13:24:01.543+00:00

    Hi @tomoyuki owada

    Thank you for asking this question on the **Microsoft Q&A Platform. **

    Did you request access to use the API?
    236177-image.png

    See: chats: getAllMessages and Protected APIs in Microsoft Teams for more details.

    Hope this helps,
    Carlos Solís Salazar

    ----------

    Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.
    NOTE: To answer you as quickly as possible, please mention me in your reply.


    0 comments No comments

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.