使用Google Calendar API发送邀请报错,已配置全域委派仍未解决
问题:服务账号无法邀请日历参会者
触发报错:
Service accounts cannot invite attendees without Domain-Wide Delegation of Authority
- 可正常使用服务账号创建日历事件,但无法邀请任何用户,问题持续存在
- 已在Google Workspace域管理控制台的Security > Access and data control > API Controls > Domain wide delegation面板添加服务账号的客户端ID,操作后无改善
- 已严格执行以下配置步骤,仍未解决问题:
- 进入Google Workspace域管理控制台主菜单 > Security > Access and data control > API Controls
- 在Domain wide delegation面板选择「Manage Domain Wide Delegation」
- 点击「Add new」
- 在Client ID字段填入服务账号的Client ID(该ID可从Service accounts页面获取)
- 在OAuth scopes (comma-delimited)字段填入应用权限范围列表,例如全域访问Google Calendar API需输入:
https://www.googleapis.com/auth/calendar - 点击「Authorize」
内容的提问来源于stack exchange,提问作者Ozone Coders
相关产品推荐
相关产品推荐

