Pooja Dhannawat
Pooja Dhannawat

Reputation: 283

Issue with MS Graph Onenote get Notebooks API

I am using MS graph API to get all notebooks including shared notebooks using: https://graph.microsoft.com/v1.0/me/onenote/notebooks?includesharednotebooks=true

Sample response I received on API call is as - enter image description here

In this notebook with "displayName": "For pooja" is created by another user and shared with me. Notebook with "displayName": "Pooja_Work_1" is created by me. In createdBy field for the notebook created by me reflects the correct user id and displayName. Whereas for the notebook shared with me the createdBy field user displayName has correct value but user id has my id. Ideally it must be user's id who has created this.

Seems like a bug in API.

In order to access the shared notebook how I can get userId of user who has shared notebook with me. On groupId in case of group shared notebooks.

Both users belong to same organisation.

Upvotes: 1

Views: 414

Answers (1)

Manjusha
Manjusha

Reputation: 538

Sorry Pooja. Currently this is a known limitation in this particular API. We are unable to retrieve the ID of the user who created or modified the shared notebook. Hence, the ID is currently set to the request user

Upvotes: 1

Related Questions