Google Chat इस्तेमाल करने वाला कोई व्यक्ति. अगर अनुरोध के आउटपुट के तौर पर दिखाया जाता है और आपका Chat ऐप्लिकेशन उपयोगकर्ता के तौर पर पुष्टि करता है, तो User संसाधन के आउटपुट में उपयोगकर्ता के name और type की जानकारी ही अपने-आप भर जाती है.
फ़ॉर्मैट: 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 डोमेन का यूनीक आइडेंटिफ़ायर.
[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"]]