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 -
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.