MS Graph Onenote获取笔记本API的问题 [英] Issue with MS Graph Onenote get Notebooks API
问题描述
我正在使用MS graph API通过以下方式获取包括共享笔记本在内的所有笔记本:https://graph.microsoft.com/v1.0/me/onenote/notebooks?includesharednotebooks=true
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
我在API调用中收到的示例响应为-
Sample response I received on API call is as -
在此笔记本中,具有"displayName": "For pooja"
的笔记本是由另一个用户创建并与我共享的.我创建了带有"displayName": "Pooja_Work_1"
的笔记本.在我创建的笔记本的createdBy
字段中,反映了正确的用户id
和displayName
.对于与我共享的笔记本,createdBy
字段用户displayName
具有正确的值,但用户id
具有我的id
.理想情况下,创建者必须是用户的id
.
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.
好像是API中的错误.
Seems like a bug in API.
为了访问共享笔记本,我如何获得与我共享笔记本的用户的userId
.如果是共享笔记本,则在groupId
上.
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.
推荐答案
对不起,Pooja.当前,这是此特定API中的已知限制.我们无法检索创建或修改共享笔记本的用户的ID.因此,该ID当前设置为请求用户
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
这篇关于MS Graph Onenote获取笔记本API的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!