Show / Hide Table of Contents

Class 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.

Inheritance
object
User
Implements
IMessage<User>
IEquatable<User>
IDeepCloneable<User>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Apps.Chat.V1
Assembly: Google.Apps.Chat.V1.dll
Syntax
public sealed class User : IMessage<User>, IEquatable<User>, IDeepCloneable<User>, IBufferMessage, IMessage

Constructors

User()

Declaration
public User()

User(User)

Declaration
public User(User other)
Parameters
Type Name Description
User other

Properties

DisplayName

Output only. The user's display name.

Declaration
public string DisplayName { get; set; }
Property Value
Type Description
string

DomainId

Unique identifier of the user's Google Workspace domain.

Declaration
public string DomainId { get; set; }
Property Value
Type Description
string

IsAnonymous

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

Declaration
public bool IsAnonymous { get; set; }
Property Value
Type Description
bool

Name

Resource name for a Google Chat [user][google.chat.v1.User].

Format: users/{user}. users/app can be used as an alias for the calling app [bot][google.chat.v1.User.Type.BOT] user.

For [human users][google.chat.v1.User.Type.HUMAN], {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.

Declaration
public string Name { get; set; }
Property Value
Type Description
string

Type

User type.

Declaration
public User.Types.Type Type { get; set; }
Property Value
Type Description
User.Types.Type
In this article
Back to top Generated by DocFX