用户的电子邮件地址可用作 API 请求中 {user} 的别名。例如,如果 user@example.com 的 People API Person 个人资料 ID 为 123456789,您可以使用 users/user@example.com 作为别名来引用 users/123456789。API 只会返回规范资源名称(例如 users/123456789)。
displayName
string
仅限输出。用户的显示名称。
针对应用身份验证和用户身份验证填充。对于通过应用身份验证发出的请求,此字段始终会填充。通过用户身份验证调用 Messages API 和 Memberships API 时,如果用户是聊天室成员或之前与调用用户有亲和关系,则对于消息的 sender、annotations 中的用户(例如提及的用户)以及 Membership 资源中的用户,系统会为内部用户和外部用户填充此字段。
avatarUrl
string
仅限输出。用户的头像图片网址。
通过用户身份验证调用 Messages API 和 Memberships API 时,如果用户是聊天室成员或之前与调用用户有亲和关系,则对于消息的 sender、annotations 中的用户(例如提及的用户)以及 Membership 资源中的用户,系统会为内部用户和外部用户填充此字段。
email
string
仅限输出。用户的电子邮件地址。
通过用户身份验证调用 Messages API 和 Memberships API 时,如果用户是聊天室成员或之前与调用用户有亲和关系,则对于消息的 sender、annotations 中的用户(例如提及的用户)以及 Membership 资源中的用户,系统会为内部用户和外部用户填充此字段。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2026-09-29。"],[],["The JSON representation defines a user with fields including `name` (resource identifier), `displayName` (user's name), `domainId` (Google Workspace domain), `type` (user or bot), and `isAnonymous` (deleted/hidden profile status). The `name` field uses aliases like email or People API ID. User types include `HUMAN` and `BOT`. Authenticated Chat app users only show `name` and `type` in request outputs. `type` is an enum with possible values like `HUMAN` and `BOT`.\n"]]