简体   繁体   English

图形API-我无法在OneDrive中获取有关共享项目的邀请信息

[英]Graph api- i can't get the invitation information about an shared item in the onedrive

I succeed to get my sharing items but I have an item which is shared with a external user. 我成功获取了共享项目,但是我有一个与外部用户共享的项目。

在此处输入图片说明

When I use this request: /me/drive/items/{item-id}/permissions 当我使用此请求时:/ me / drive / items / {item-id} / permissions

I have the list of internal user who the item is shared but I don't have any information about the external invitation that you can see inthe top of the picture. 我有共享该项目的内部用户列表,但是我没有关于外部邀请的任何信息,您可以在图片顶部看到这些信息。

I don't have the invition property like that : 我没有这样的invition属性:

{
  "id": "string (identifier)",
  "grantedTo": {"@odata.type": "microsoft.graph.identitySet"},
  "inheritedFrom": {"@odata.type": "microsoft.graph.itemReference"},
  "invitation": {"@odata.type": "microsoft.graph.sharingInvitation"},
  "link": {"@odata.type": "microsoft.graph.sharingLink"},
  "roles": ["string"],
  "shareId": "string"
}

Do you have a solution? 你有解决方案吗?

Thanks. 谢谢。

I have the same issue. 我有同样的问题。

At this link , an answer was done 在此链接上 ,答案已完成

Other properties, like invitation and inheritedFrom are currently available for OneDrive Personal drives, but not available from OneDrive for Business or SharePoint document libraries. OneDrive个人驱动器当前可以使用其他属性,例如邀请和InheritedFrom,但OneDrive for Business或SharePoint文档库则不可用。

Now using sharepoint library, i'm able to found all the permissions (including invitation and inheritedFrom. Maybe a workaround! 现在使用共享点库,我可以找到所有权限(包括邀请和InheritedFrom。也许是解决方法!

Try to use it to get the permisions! 尝试使用它来获得渗透!

I hope this help you! 希望对您有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Microsoft Graph .Net API:共享的OneDrive文件夹 - Microsoft Graph .Net API: Shared OneDrive folder 无法获取 OneDrive 文件夹的重分析点信息 - Can't Get Reparse Point Information for the OneDrive Folder 如何使用 Graph Api 替换 Onedrive 中的文件? - How can i replace a file in Onedrive USING THE Graph Api? 如何使用OneDrive API将文件上传到OneDrive上的共享文件夹中? - How can I upload files into a shared folder on OneDrive using OneDrive API? 如何使用图形 API 从 OneDrive 获取文件共享人员详细信息 - How to get the file shared persons details from OneDrive using graph API Microsoft Cognitive Face API - 如何从 Kinect 的视频源中获取人脸属性? - Microsoft Cognitive Face API- how can i get Face Attributes in video feed from Kinect? 如何使用 Onedrive Graph API 删除用户对项目的权限? - How to remove permissions of a user on an item using Onedrive Graph API? TFS rest API-创建工作项 - TFS rest API- Create Work Item Microsoft Graph API-从OneDrive获取最新的照片缩略图 - Microsoft Graph API - Get most recent photo thumbnails from OneDrive Sitecore-根据要求获取有关媒体项目的信息 - Sitecore - Get information about media item on request
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM