I am trying to access graph api to read notes pages, I am getting this error.
{
"error": {
"code": "40004",
"message": "The OAuth token provided does not have the necessary scopes to complete the request. Please make sure you are including one of the following scopes: Notes.ReadWrite.All,Notes.Read.All",
"innerError": {
"request-id": "d333a0ee-fe7c-4743-8498-350dc340dd8e",
"date": "2016-04-27T16:52:22"
}
}
}
I have added new app to work account and added required delegated permissions to my app. Permission details are as follows.
Resource: Microsoft Graph permission Scopes: Read User notebooks
Resource: OneNote permission Scopes: View one note notebooks, View one note notebooks in your organization.
the endpoint I am using: https://graph.microsoft.com/beta/me/notes/pages
I did not find answer in the same question which is asked previously OneNote API - no HTTP Resource found?