Issue with MS Graph Onenote get Notebooks API

自作多情 提交于 2019-12-20 04:54:23

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/46424446/issue-with-ms-graph-onenote-get-notebooks-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!