User
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Google চ্যাটে একজন ব্যবহারকারী। যখন একটি অনুরোধ থেকে আউটপুট হিসাবে ফিরে আসে, যদি আপনার চ্যাট অ্যাপটি একজন ব্যবহারকারী হিসাবে প্রমাণীকরণ করে , একটি User
সম্পদের আউটপুট শুধুমাত্র ব্যবহারকারীর name
এবং type
পপুলেট করে।
JSON প্রতিনিধিত্ব |
---|
{
"name": string,
"displayName": string,
"domainId": string,
"type": enum (Type ),
"isAnonymous": boolean
} |
ক্ষেত্র |
---|
name | string Google চ্যাট user জন্য সম্পদের নাম। বিন্যাস: users/{user} । users/app কলিং অ্যাপ bot ব্যবহারকারীর জন্য একটি উপনাম হিসাবে ব্যবহার করা যেতে পারে। human users জন্য, {user} একই ব্যবহারকারী শনাক্তকারী: পিপল এপিআই-এ ব্যক্তির জন্য id । উদাহরণ স্বরূপ, Chat API-এ users/123456789 একই ব্যক্তিকে প্রতিনিধিত্ব করে যেটি People API-তে 123456789 ব্যক্তি প্রোফাইল আইডি। অ্যাডমিন SDK ডিরেক্টরি API-এ একজন ব্যবহারকারীর জন্য id । ব্যবহারকারীর ইমেল ঠিকানা API অনুরোধে {user} এর উপনাম হিসাবে ব্যবহার করা যেতে পারে। উদাহরণস্বরূপ, যদি user@example.com এর জন্য People API Person প্রোফাইল আইডি 123456789 হয়, তাহলে আপনি users/user@example.com একটি উপনাম হিসেবে users/123456789 উল্লেখ করতে ব্যবহার করতে পারেন। API থেকে শুধুমাত্র ক্যানোনিকাল রিসোর্স নাম (উদাহরণস্বরূপ users/123456789 ) ফেরত দেওয়া হবে।
|
displayName | string শুধুমাত্র আউটপুট। ব্যবহারকারীর প্রদর্শনের নাম। |
domainId | string ব্যবহারকারীর Google Workspace ডোমেনের অনন্য শনাক্তকারী। |
type | enum ( Type ) ব্যবহারকারীর ধরন। |
isAnonymous | boolean শুধুমাত্র আউটপুট। true হলে, ব্যবহারকারী মুছে ফেলা হয় বা তাদের প্রোফাইল দৃশ্যমান হয় না। |
টাইপ
Enums |
---|
TYPE_UNSPECIFIED | enum-এর জন্য ডিফল্ট মান। ব্যবহার করবেন না। |
HUMAN | মানব ব্যবহারকারী। |
BOT | চ্যাট অ্যাপ ব্যবহারকারী। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe \u003ccode\u003eUser\u003c/code\u003e resource represents a Google Chat user, which can be a human or a Chat app.\u003c/p\u003e\n"],["\u003cp\u003eA user's resource name is formatted as \u003ccode\u003eusers/{user}\u003c/code\u003e, with various identifiers like email or People API ID usable for \u003ccode\u003e{user}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eWhen a Chat app authenticates as a user, the API response for the \u003ccode\u003eUser\u003c/code\u003e resource only includes the \u003ccode\u003ename\u003c/code\u003e and \u003ccode\u003etype\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etype\u003c/code\u003e field indicates whether the user is \u003ccode\u003eHUMAN\u003c/code\u003e or \u003ccode\u003eBOT\u003c/code\u003e, while \u003ccode\u003eisAnonymous\u003c/code\u003e signifies a deleted or invisible profile.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edisplayName\u003c/code\u003e and \u003ccode\u003edomainId\u003c/code\u003e provide additional user information but might not be populated in all contexts.\u003c/p\u003e\n"]]],["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"],null,["# User\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [Type](#Type)\n\nA user in Google Chat. When returned as an output from a request, if your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output for a `User` resource only populates the user's `name` and `type`.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"displayName\": string, \"domainId\": string, \"type\": enum (/workspace/chat/api/reference/rest/v1/User#Type), \"isAnonymous\": boolean } ``` |\n\n| Fields ||\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Resource name for a Google Chat [user](/workspace/chat/api/reference/rest/v1/User). Format: `users/{user}`. `users/app` can be used as an alias for the calling app [bot](/workspace/chat/api/reference/rest/v1/User#Type.ENUM_VALUES.BOT) user. For [human users](/workspace/chat/api/reference/rest/v1/User#Type.ENUM_VALUES.HUMAN), `{user}` is the same user identifier as: - the `id` for the [Person](https://developers.google.com/people/api/rest/v1/people) in the People API. For example, `users/123456789` in Chat API represents the same person as the `123456789` Person profile ID in People API. - the `id` for a [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. - the user's email address can be used as an alias for `{user}` in API requests. For example, if the People API Person profile ID for `user@example.com` is `123456789`, you can use `users/user@example.com` as an alias to reference `users/123456789`. Only the canonical resource name (for example `users/123456789`) will be returned from the API. |\n| `displayName` | `string` Output only. The user's display name. |\n| `domainId` | `string` Unique identifier of the user's Google Workspace domain. |\n| `type` | `enum (`[Type](/workspace/chat/api/reference/rest/v1/User#Type)`)` User type. |\n| `isAnonymous` | `boolean` Output only. When `true`, the user is deleted or their profile is not visible. |\n\nType\n----\n\n| Enums ||\n|--------------------|-----------------------------------------|\n| `TYPE_UNSPECIFIED` | Default value for the enum. DO NOT USE. |\n| `HUMAN` | Human user. |\n| `BOT` | Chat app user. |"]]