User
משתמש ב-Google Chat. כשמוחזר מפלט כפלט מבקשה, אם אפליקציית Chat ביצעה אימות כמשתמש, הפלט של המשאב User
יאכלס רק את ה-name
וה-type
של המשתמש.
ייצוג JSON |
{
"name": string,
"displayName": string,
"domainId": string,
"type": enum (Type ),
"isAnonymous": boolean
} |
שדות |
name |
string
השם של משאב user ב-Google Chat. פורמט: users/{user} אפשר להשתמש באפליקציה users/app ככינוי שמשויך לאפליקציית השיחות bot . בשביל human users , {user} הוא אותו מזהה משתמש כמו:
השדה id של האדם ב-People API. לדוגמה, users/123456789 ב-Chat API מייצג את אותו אדם שמייצג את מזהה פרופיל המשתמש 123456789 ב-People API.
השדה id של משתמש ב-Admin SDK Directory API.
כתובת האימייל של המשתמש יכולה לשמש ככינוי עבור {user} בבקשות API. לדוגמה, אם מזהה פרופיל המשתמש של People API של user@example.com הוא 123456789 , אפשר להשתמש ב-users/user@example.com ככינוי כדי לציין את users/123456789 . רק השם הקנוני של המשאב (לדוגמה users/123456789 ) יוחזר מה-API.
|
displayName |
string
פלט בלבד. השם המוצג של המשתמש.
|
domainId |
string
המזהה הייחודי של דומיין Google Workspace של המשתמש.
|
type |
enum (Type )
סוג המשתמש.
|
isAnonymous |
boolean
פלט בלבד. כאשר true , המשתמש נמחק או שהפרופיל שלו לא גלוי.
|
סוג
טיפוסים בני מנייה (enum) |
TYPE_UNSPECIFIED |
ערך ברירת המחדל של enum. לא לשימוש. |
HUMAN |
משתמש אנושי. |
BOT |
משתמש באפליקציית Chat. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-02-27 (שעון UTC).
[null,null,["עדכון אחרון: 2025-02-27 (שעון UTC)."],[[["The `User` resource represents a Google Chat user, which can be a human or a Chat app."],["A user's resource name is formatted as `users/{user}`, with various identifiers like email or People API ID usable for `{user}`."],["When a Chat app authenticates as a user, the API response for the `User` resource only includes the `name` and `type` fields."],["The `type` field indicates whether the user is `HUMAN` or `BOT`, while `isAnonymous` signifies a deleted or invisible profile."],["The `displayName` and `domainId` provide additional user information but might not be populated in all contexts."]]],["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"]]