User

A user in Google Chat.

JSON representation
{
  "name": string,
  "displayName": string,
  "domainId": string,
  "type": enum (Type),
  "isAnonymous": boolean
}
Fields
name

string

Resource name for a Google Chat user.

Format: users/{user}. users/app can be used as an alias for the calling app bot user.

For human users, {user} is the same user identifier as:

  • the {person_id} for the Person in the People API, where the Person resourceName is people/{person_id}. For example, users/123456789 in Chat API represents the same person as people/123456789 in People API.

  • the id for a user in the Admin SDK Directory API.

displayName

string

Output only. The user's display name.

domainId

string

Unique identifier of the user's Google Workspace domain.

type

enum (Type)

User type.

isAnonymous

boolean

Output only. When true, the user is deleted or their profile is not visible.

Type

Enums
TYPE_UNSPECIFIED Default value for the enum. DO NOT USE.
HUMAN Human user.
BOT Chat app user.