permissions - Google Calendar API 上的 "minAccessRole",顺序是什么?

标签 permissions google-api google-calendar-api

根据 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角色夹在writerowner之间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/

相关文章:

Linux 权限组与其他权限组

google-apps-script - 通过 Google Apps 脚本向非 Google 帐户发送日历邀请

android - 从 android 日历中检索最后添加的事件的数据

linux - 从 stat 函数输出中理解和解码文件模式值

c - 如何通过进程属性限制对 Linux 目录的写访问?

linux ELF节和头访问权限

python - Gmail API : ModuleNotFoundError: No module named 'google'

php - 如何从 Google 查询中获取结果数量

php - 将本地 Excel.xlsx 文件转换为 Google 电子表格 Google DRIVE API

php - Google Calendar API 始终对事件列表进行分页