OneNote Graph API - Shared Notebook

Rahma Ksouri 0 Reputation points
2024-09-20T09:45:32.23+00:00

Hello,

We've been trying to retrieve data (pages content) via the OneNote Graph API from a shared notebook which is located on a SharePoint site without success, even though we are able to access the notebook via the app, as well as the SharePoint site.

Any helpful advice on how to proceed?

OneNote
OneNote
A family of Microsoft products that enable users to capture, organize, and reuse notes electronically.
207 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,309 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rohit Raghuwanshi - MSFT 625 Reputation points Microsoft Vendor
    2024-09-23T10:53:24.15+00:00

    Hi Rahma Ksouri,

    I tried to replicate the scenario and was successfully able to retrieve content of shared OneNote notebook page using users/{Notebook Owner's User Id/ UPN}/onenote/pages/{pageId}/content Please ensure you provide Notes.Read.All permission.

    Please check below screenshot:
    User's image

    Please refer the below doc for more details: https://video2.skills-academy.com/en-us/graph/onenote-get-content

    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.