找不到与我共享的文件的所有者的ID [英] Cannot find id of owner of a file shared with me

查看:238
本文介绍了找不到与我共享的文件的所有者的ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Google Drive API: drive.changes.list 我得到一个用户的文件列表,包括其他用户共享的文件列表。对于其他用户拥有的文件,只有所有者的名称显示在API中。当然,名字并不是唯一的,所有者可以随心所欲地改变它,所以对于将两个不同的共享文件的所有者关联起来是没有任何关联的,这种做法是毫无用处的。



我怎么能获得拥有者的唯一ID?这是可能的吗?



这是不是有原因?看起来没有工程师般的喜欢透露所有者的名字,但不是一个不透明的ID。

业主[]。如文件资源所述的permissionId属性在所有给定内容中应该是唯一的用户文件。因此,如果拥有者permissionId对于两个文件是相同的,那么该文件由同一个帐户拥有。



目前无法检索所有者或文档的电子邮件地址协作者虽然>有计划补救这个


Using the Google Drive API: drive.changes.list I get a list of files for a user including those shared by another user. For the files that are owned by another user only the owner's name is shown in the API. Naturally names are not unique and the owner can change it on a whim, so pretty useless for correlating that the owner of two different shared files is the same.

How can I get the unique id of the owner? Is this possible?

Is there a reason this is not allowed? It seems un-engineer-like to disclose the name of the owner but not an opaque id.

解决方案

The owners[].permissionId attribute as described by the files resource should be unique across all of a given users files. So if the owner permissionId is the same for two files, then the file is owned by the same account.

It's currently not possible to retrieve the email address of owners or document collaborators though there are plans to remedy this.

这篇关于找不到与我共享的文件的所有者的ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆