Reputation: 24651
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.
Upvotes: 0
Views: 798
Reputation: 13528
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.
Upvotes: 2