Google 日历 API 不适用于来自 Google Apps for Work 的日历

Google Calendar API doesn't work with a calendars from Google Apps for Work

我正在使用 Google 日历 API 将日历与 Google 日历同步。

它在普通 Google 帐户上运行良好,但我无法在 Google for Work 帐户上运行。

我基本上是要求 credential 创建一个新日历,然后将自己定义为日历的所有者,以便将来能够更新它。这对两种类型的帐户都有效,但是当我尝试使用 Google for Work 帐户添加新事件时,我收到 403 禁止错误。

因为普通 Google 帐户工作正常,我假设某处有一个安全设置阻止我创建事件,但我可以找到哪个。

我尝试在 Google for Work 帐户的管理控制台中添加我的客户端 ID 和范围 https://www.googleapis.com/auth/calendar,但没有效果。

"External Sharing options for primary calendars" 控制域外帐户访问域内日历的方式。该设置位于管理控制台中:support.google.com/a/answer/60765?hl=en