View Source GoogleApi.Chat.V1.Model.User (google_api_chat v0.34.3)

A user in Google Chat. When returned as an output from a request, if your Chat app authenticates as a user, the output for a User resource only populates the user's name and type.

Attributes

  • displayName (type: String.t, default: nil) - Output only. The user's display name.
  • domainId (type: String.t, default: nil) - Unique identifier of the user's Google Workspace domain.
  • isAnonymous (type: boolean(), default: nil) - Output only. When true, the user is deleted or their profile is not visible.
  • name (type: String.t, default: nil) - 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 id for the Person 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 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.
  • type (type: String.t, default: nil) - User type.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Chat.V1.Model.User{
  displayName: String.t() | nil,
  domainId: String.t() | nil,
  isAnonymous: boolean() | nil,
  name: String.t() | nil,
  type: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.