有什么方法可以从 Google Drive API Permissions 获取电子邮件地址,以便区分 2 个同名用户? [英] Any way to get email address from Google Drive API Permissions so I can differentiate 2 users with the same name?

查看:8
本文介绍了有什么方法可以从 Google Drive API Permissions 获取电子邮件地址,以便区分 2 个同名用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了以前的帖子 [1, 2, 3] 由于隐私原因,不会为 Google Drive Permissions API 显示电子邮件地址.但我正在尝试寻找一种方法来显示用户权限,其中有 2 个不同的用户同名.

I have read from previous posts [1, 2, 3] that the email address is not displayed for Google Drive Permissions API due to privacy reasons. But I am trying to look for a way to display user permissions where there are 2 different users with the same name.

使用 Google Drive 共享 UI,您可以区分两个同名的不同用户,因为它还会在他们的姓名旁边显示他们的电子邮件(如果 Google Drive UI 可以,我不明白为什么在 API 中不能做到这一点得到它).

With the Google Drive sharing UI, you can differentiate two different users with the same name as it also displays their email next to their name (I don't see why this is not possible in the API if the Google Drive UI can get it).

我宁愿不必依赖现已弃用的 DocList API 从 ACL 获取电子邮件.

I would prefer not having to rely on the now deprecated DocList API to get the emails from the ACLs.

推荐答案

很遗憾,目前只能使用文档列表 API 来获取电子邮件地址,抱歉.

Unfortunately, using the documents list API is your only option for now to get the email addresses, sorry.

这篇关于有什么方法可以从 Google Drive API Permissions 获取电子邮件地址,以便区分 2 个同名用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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