Use OneNote API to get notebooks shared with me

Jehanzeb Mobarik 1 Reputation point


I'm hoping someone could advise/help on a question I have regarding the OneNote API.

I, along with my colleagues, have a shared OneNote notebook that we use to store information about procedures. I came across the Microsoft Graph API which would allow me to edit a OneNote page from a script that I am looking to develop.

However, when I tested out the Graph Explorer, I found that it was only listing the Notebooks that I explicitly own rather than the Notebooks that I own as part of a team or Notebooks that are shared with me.

Could someone please explain what I need to do in order to get the Notebooks and their pages that are shared with me.

Jehanzeb Mobarik

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,371 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Sheena-MSFT 1,731 Reputation points

    Hi @Jehanzeb Mobarik ,

    Currently this is not supported using OneNote API. This feature fix is in Microsoft product backlog list and they are planning to implement it in future based on the priority order set by them.

    As a work around use drive_sharedwithme

    Related Post :

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

  2. Jehanzeb Mobarik 1 Reputation point

    Hi Sheena-MSFT,

    Do you have an update on the above comment?

    Jehanzeb Mobarik

  3. Paul 1 Reputation point

    Hi @Jehanzeb Mobarik ,

    i was able to use the graph api to connect to a shared onenote. You have to modify the url a little:{group-id}/onenote/notebooks

    All you need to know is the group id of the shared notebook. In my case i had a onenote shared via sharepoint and teams. I was able to find the spezific group in azure ad and look up the group id. Modifying the standard url of the graph api a little and switching out "users" for "groups" i was able to connect. I used an app registration in azure and a logiy app via http request to make my get request. I am sure you can use it for a post too.

    0 comments No comments