User
Google Chat इस्तेमाल करने वाला कोई व्यक्ति. अगर अनुरोध के आउटपुट के तौर पर दिखाया जाता है और आपका Chat ऐप्लिकेशन उपयोगकर्ता के तौर पर पुष्टि करता है, तो User
संसाधन के आउटपुट में उपयोगकर्ता के name
और type
की जानकारी ही अपने-आप भर जाती है.
JSON के काेड में दिखाना |
{
"name": string,
"displayName": string,
"domainId": string,
"type": enum (Type ),
"isAnonymous": boolean
} |
फ़ील्ड |
name |
string
Google Chat user के लिए संसाधन का नाम. फ़ॉर्मैट: users/{user} . users/app का इस्तेमाल, कॉलिंग ऐप्लिकेशन bot के उपयोगकर्ता के लिए उपनाम के तौर पर किया जा सकता है. human users के लिए, {user} और ये उपयोगकर्ता आइडेंटिफ़ायर एक ही हैं:
People API में, Person के लिए id . उदाहरण के लिए, Chat API में users/123456789 , People API में 123456789 व्यक्ति प्रोफ़ाइल आईडी के तौर पर उसी व्यक्ति को दिखाता है.
Admin SDK Directory API में किसी उपयोगकर्ता के लिए id .
उपयोगकर्ता के ईमेल पते का इस्तेमाल, एपीआई अनुरोधों में {user} के लिए उपनाम के तौर पर किया जा सकता है. उदाहरण के लिए, अगर user@example.com के लिए People API पर्सोनी की प्रोफ़ाइल का आईडी 123456789 है, तो users/123456789 का रेफ़रंस देने के लिए users/user@example.com का इस्तेमाल उपनाम के तौर पर किया जा सकता है. एपीआई से सिर्फ़ कैननिकल रिसॉर्स का नाम दिखाया जाएगा. उदाहरण के लिए, users/123456789 .
|
displayName |
string
सिर्फ़ आउटपुट के लिए. उपयोगकर्ता का डिसप्ले नेम.
|
domainId |
string
उपयोगकर्ता के Google Workspace डोमेन का यूनीक आइडेंटिफ़ायर.
|
type |
enum (Type )
उपयोगकर्ता का टाइप.
|
isAnonymous |
boolean
सिर्फ़ आउटपुट के लिए. true पर, उपयोगकर्ता को मिटा दिया जाता है या उसकी प्रोफ़ाइल नहीं दिखती है.
|
टाइप
Enums |
TYPE_UNSPECIFIED |
Enum के लिए डिफ़ॉल्ट वैल्यू. इसका इस्तेमाल न करें. |
HUMAN |
उपयोगकर्ता. |
BOT |
Chat ऐप्लिकेशन का उपयोगकर्ता. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]