自动为所有用户订阅超级管理员 Google 帐户
Automatically Subscribe all users to Super Admin Google Account
我需要一个超级管理员帐户才能查看组织中所有用户的所有 Google 日历。
要手动执行此操作,我将执行以下操作:
为所有用户重复:
- 使用我的超级管理员帐户转到 https://calendar.google.com/calendar
- 点击订阅日历并输入用户的电子邮件
我想使用 Google APIs 自动执行此过程。
- 获取组织中的所有用户
- 如果我还没有订阅就订阅
是否可以通过 Google APIs 执行此操作?我无法在 Google 日历 API
中找到有关订阅的文档
您可以使用方法 CalendarList: insert 将其他用户的日历添加到您的超级管理员帐户,因为这会将指定的日历添加到您的日历列表。
要获取将此日历插入您的日历列表所需的日历 ID,您可以使用 CalendarList: list and impersonating each user on your organization to then iterate over this list of calendars to get the id
. I recommend doing this process using a service account。
- 创建一个服务帐户。
- 遍历您组织中的每个用户。
- 对每个用户进行
CalendarList: list
调用并遍历此列表的每个日历。
- 对于每个日历,使用
CalendarList: insert
将此日历插入超级管理员(或任何其他用户)帐户。
我需要一个超级管理员帐户才能查看组织中所有用户的所有 Google 日历。
要手动执行此操作,我将执行以下操作:
为所有用户重复:
- 使用我的超级管理员帐户转到 https://calendar.google.com/calendar
- 点击订阅日历并输入用户的电子邮件
我想使用 Google APIs 自动执行此过程。
- 获取组织中的所有用户
- 如果我还没有订阅就订阅
是否可以通过 Google APIs 执行此操作?我无法在 Google 日历 API
中找到有关订阅的文档您可以使用方法 CalendarList: insert 将其他用户的日历添加到您的超级管理员帐户,因为这会将指定的日历添加到您的日历列表。
要获取将此日历插入您的日历列表所需的日历 ID,您可以使用 CalendarList: list and impersonating each user on your organization to then iterate over this list of calendars to get the id
. I recommend doing this process using a service account。
- 创建一个服务帐户。
- 遍历您组织中的每个用户。
- 对每个用户进行
CalendarList: list
调用并遍历此列表的每个日历。 - 对于每个日历,使用
CalendarList: insert
将此日历插入超级管理员(或任何其他用户)帐户。