Google共享联系人API更新公司范围内的联系人目录

Google Shared Contacts API update the companywide contacts directory

本文关键字:联系人 范围内 更新 共享 API Google 公司      更新时间:2023-09-26

我正在创建一个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

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

如有任何帮助,将不胜感激

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

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

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