根据 Google Calendar API v3,您可以设置 minAccessRole
;
The minimum access role for the user in the returned entries. Optional. The default is no restriction.
有 4 个值;
- “freeBusyReader”:用户可以读取忙/闲信息。
- “所有者”:用户可以读取和修改事件和访问控制列表。
- “reader”:用户可以读取非私有(private)事件。
- “writer”:用户可以读取和修改事件。
我想要解决的是,顺序是什么?如果设置 minAccessRole
,我应该看到哪些日历?
这似乎相当明显,但他们编写它们的顺序让我感到困惑,因为似乎reader
角色夹在writer
和owner
之间code> 这对我来说似乎不正确。
最佳答案
我想我必须承认该命令具有误导性。以下顺序可能更明智。查到的信息Sharing and Attendees页面可能更活跃。
The owners of a calendar can share the calendar by giving access to other users. The sharing settings of a given calendar are represented by the ACL collection (access control list) of that calendar. Each resource in the ACL collection grants a specified grantee a certain access role, which is one of those listed in the following table:
- 无不提供访问权限。
- freeBusyReader 允许受让人查看日历在给定时间是否空闲或忙碌,但不允许访问事件详细信息。可以使用 freeBusy.query 操作检索忙/闲信息。
- 阅读器让受助者阅读日历上的事件。
- writer 允许受助者在日历上读取和写入事件。
- 所有者 提供日历的所有权。此角色拥有编写者角色的所有权限,还具有查看和操作 ACL 的附加能力。
关于permissions - Google Calendar API 上的 "minAccessRole",顺序是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46401595/