getting error that scope does not exist for get callrecords api in microsoft graph

Heli Naik 1 Reputation point
2022-02-04T04:49:36.373+00:00

hello i am providing scope https://graph.microsoft.com/CallRecords.Read.All to get callrecords api but everytime i am trying to get auth code it showing that scope does not exist on resource or invalid scope my application name is abc

the application "abc" asked for scope "CallRecords.Read.All" that does not exist on the resource 00000003-0000-0000-c000-000000000000

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,582 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,372 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Zehui Yao_MSFT 5,831 Reputation points
    2022-02-04T07:27:28.893+00:00

    Hello @HeliNaik-234, according to the documentation, the get callrecords api only support application permission.

    171243-image.png

    I just given a test using on-behalf-of user Authorization request, and reproduced the same error as you.
    171283-image.png
    So I think that might be the cause of the problem, please check if you are for this reason.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.