Pooja Dhannawat
Pooja Dhannawat

Reputation: 283

Accessing shared notebooks pages and sections for Onenote for business acoount

I am integration onenote with my application. I am using below mentioned API to retrieve all notebooks that a user can potentially access to.

https://graph.microsoft.com/v1.0/me/onenote/notebooks?includesharednotebooks=true

I am able to retrieve all the notebooks owned by me and shared with me. The problem is in case on business account I am not able to further access the pages and sections which are inside shared notebooks. For all owned notebooks I can still access the pages and sections. How I can resolve this issue ?

This is a blocker for me. Kindly revert

Upvotes: 1

Views: 403

Answers (1)

Jorge Aguirre
Jorge Aguirre

Reputation: 2857

Have you tried accessing the notebooks by site?

  1. Call the API
  2. For any given notebook that doesn't belong to the owner, look for the site id given the site URL
  3. Use that site id to do a ~sites/id/notes/... request

In Graph, you might be able to look up the site by keyword. Example:

https://graph.microsoft.com/v1.0/sites?search=contoso

Upvotes: 0

Related Questions