User
Google 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 사람 프로필 ID와 동일한 사람을 나타냅니다.
Admin SDK Directory API의 사용자에 대한 id 입니다.
사용자의 이메일 주소를 API 요청에서 {user} 의 별칭으로 사용할 수 있습니다. 예를 들어 user@example.com 의 People API Person 프로필 ID가 123456789 이면 users/user@example.com 를 별칭으로 사용하여 users/123456789 를 참조할 수 있습니다. 표준 리소스 이름 (예: users/123456789 )만 API에서 반환됩니다.
|
displayName |
string
출력 전용입니다. 사용자의 표시 이름
|
domainId |
string
사용자의 Google Workspace 도메인의 고유 식별자입니다.
|
type |
enum (Type )
사용자 유형입니다.
|
isAnonymous |
boolean
출력 전용입니다. true 인 경우 사용자가 삭제되거나 프로필이 표시되지 않습니다.
|
유형
열거형 |
TYPE_UNSPECIFIED |
enum의 기본값입니다. 사용하지 않습니다. |
HUMAN |
인간 사용자입니다. |
BOT |
채팅 앱 사용자입니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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"]]