【问题标题】:Google Shared Contacts API update the companywide contacts directoryGoogle Shared Contacts API 更新公司范围内的联系人目录
【发布时间】:2016-07-10 23:07:06
【问题描述】:

我正在创建一个 chrome 扩展,我正在使用 chrome.identity.getAuthToken() 来获取访问令牌。我通过firstName.lastName@company.com 进行了身份验证。我设置了以下范围

"https://www.googleapis.com/auth/contacts.readonly",
"https://www.google.com/m8/feeds/",
"http://www.google.com/m8/feeds/contacts/"

标头设置了GData-Version: 3.0

我可以通过https://www.google.com/m8/feeds/contacts/default/full/?access_token=... 访问我自己的联系人

如果我尝试通过 https://www.google.com/m8/feeds/contacts/company.com/full/?access_token=... 访问域共享联系人,我会收到带有 Your client does not have permission to get URL /m8/feeds/contacts/company.com/full/ from this server 的错误 403

我的目标是获得一个能够创建共享联系人的扩展程序,公司的每个人都可以访问这些联系人。

任何帮助将不胜感激

【问题讨论】:

    标签: javascript google-oauth google-api-client google-admin-sdk google-contacts-api


    【解决方案1】:

    我的帐户没有必要的读/写权限。似乎只允许超级管理员编辑域共享联系人。

    如果我不想授予用户超级管理员权限,我需要创建一个负责创建联系人的后端。

    我需要创建一个服务帐户来模拟超级管理员级别的用户,该帐户将更新联系人。所有必要的信息都可以找到here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-09-13
      • 2016-10-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-31
      • 2017-02-11
      相关资源
      最近更新 更多