Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::User.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#display_name
def display_name() -> ::String- (::String) — Output only. The user's display name.
#domain_id
def domain_id() -> ::String- (::String) — Unique identifier of the user's Google Workspace domain.
#domain_id=
def domain_id=(value) -> ::String- value (::String) — Unique identifier of the user's Google Workspace domain.
- (::String) — Unique identifier of the user's Google Workspace domain.
#is_anonymous
def is_anonymous() -> ::Boolean-
(::Boolean) — Output only. When
true, the user is deleted or their profile is not visible.
#name
def name() -> ::String-
(::String) —
Resource name for a Google Chat user.
Format:
users/{user}.users/appcan be used as an alias for the calling app bot user.For human users,
{user}is the same user identifier as:the
idfor the Person in the People API. For example,users/123456789in Chat API represents the same person as the123456789Person profile ID in People API.the
idfor 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 foruser@example.comis123456789, you can useusers/user@example.comas an alias to referenceusers/123456789. Only the canonical resource name (for exampleusers/123456789) will be returned from the API.
#name=
def name=(value) -> ::String-
value (::String) —
Resource name for a Google Chat user.
Format:
users/{user}.users/appcan be used as an alias for the calling app bot user.For human users,
{user}is the same user identifier as:the
idfor the Person in the People API. For example,users/123456789in Chat API represents the same person as the123456789Person profile ID in People API.the
idfor 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 foruser@example.comis123456789, you can useusers/user@example.comas an alias to referenceusers/123456789. Only the canonical resource name (for exampleusers/123456789) will be returned from the API.
-
(::String) —
Resource name for a Google Chat user.
Format:
users/{user}.users/appcan be used as an alias for the calling app bot user.For human users,
{user}is the same user identifier as:the
idfor the Person in the People API. For example,users/123456789in Chat API represents the same person as the123456789Person profile ID in People API.the
idfor 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 foruser@example.comis123456789, you can useusers/user@example.comas an alias to referenceusers/123456789. Only the canonical resource name (for exampleusers/123456789) will be returned from the API.
#type
def type() -> ::Google::Apps::Chat::V1::User::Type- (::Google::Apps::Chat::V1::User::Type) — User type.
#type=
def type=(value) -> ::Google::Apps::Chat::V1::User::Type- value (::Google::Apps::Chat::V1::User::Type) — User type.
- (::Google::Apps::Chat::V1::User::Type) — User type.