Class User
If your Chat app authenticates as a
user, the output for a User
resource (such as in the Messages and Memberships APIs) only populates the name and type fields for both
internal and external users, unless they are members of the space or have prior affinity with the calling user.
Implements
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1.Data
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class User : IDirectResponseSchema
Properties
DisplayName
Output only. The user's display name. Populated for both app authentication and user authentication. This
field is always populated for requests made with app
authentication. When calling
the Messages and Memberships APIs with user
authentication, this field
is populated for both internal and external users for the sender of a message, users within annotations
(such as user mentions), and within Membership resources, provided the user is a member of the space or
has prior affinity with the calling user.
Declaration
[JsonProperty("displayName")]
public virtual string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DomainId
Unique identifier of the user's Google Workspace domain.
Declaration
[JsonProperty("domainId")]
public virtual string DomainId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IsAnonymous
Output only. When true, the user is deleted or their profile is not visible, such as when a user is
mentioned in a space without being a member and without prior affinity with the calling user.
Declaration
[JsonProperty("isAnonymous")]
public virtual bool? IsAnonymous { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Name
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
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.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Type
User type.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |