借助成员资格过期时间,群组所有者、群组管理员、Google Workspace 超级用户或具有群组管理员特权的工作区委托管理员可以管理群组和群组对资源的访问权限。访问权限可以根据成员资格过时情况或临时需求进行限制,而无需手动移出成员。Groups API 可针对以下用例启用成员资格过期时间:
对资源的限时访问权限(例如,允许某人帮助排查生产环境中的问题)
通信群组中的临时成员资格(例如,将人员临时加入一个长期项目的团队群组中)
如果所有类型的群组成员都具有 MEMBER 角色,则过期时间可以应用于这些成员(包括用户、群组和服务账号)。当您为本身就是群组的成员设置过期时间时,该过期时间会成为该群组的所有子级成员的默认过期时间,除非该子级成员在已经应用单个过期时间的父级群组中具有直接的成员资格。该过期时间以后也会应用于子级群组的所有新成员。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-04-03。"],[[["This feature enables managing group memberships with expiration dates, allowing for time-limited access to resources or temporary inclusion in communication groups."],["Membership expiration is applicable to users, groups, and service accounts with a `MEMBER` role, and when applied to a group, it becomes the default for all child members unless they have individual expirations."],["Updating a membership's expiration requires calling `groups.memberships.modifyMembershipRoles()` and specifying the `MEMBER` role and its new expiration date."],["Retrieving a membership expiration is done by calling `groups.memberships.get()` with the parent group ID and the membership ID."],["Group owners are automatically notified via email 72 hours before a membership expires, or immediately if the expiration is sooner than 72 hours."]]],[]]