Language

ChannelAccount Class

Definition

Represents a channel account — a participant identity (such as a user or bot) on a channel, including its unique identifier, display name, and any additional properties.

public class ChannelAccount
type ChannelAccount = class
Public Class ChannelAccount
Inheritance
ChannelAccount
Derived

Remarks

This class models the account information for a participant in messaging or chat applications (for example, the sender or recipient of an activity). The additional properties dictionary allows for extensibility to support custom metadata or protocol-specific fields.

Constructors

Name Description
ChannelAccount()

Represents a channel account — a participant identity (such as a user or bot) on a channel, including its unique identifier, display name, and any additional properties.

Properties

Name Description
AgenticAppBlueprintId

Gets or sets the agentic application blueprint ID.

AgenticAppId

Gets or sets the agentic application ID for user-delegated token acquisition.

AgenticUserId

Gets or sets the agentic user ID for user-delegated token acquisition.

BotId

Gets or sets the bot application ID associated with the account.

Id

Gets or sets the unique identifier for the object.

IsTargeted

Gets or sets a value indicating whether this is a targeted message visible only to this recipient.

Name

Gets or sets the display name of the channel account.

Properties

Gets the extension data dictionary for storing additional properties not defined in the schema.

TenantId

Gets or sets the tenant ID associated with the account.

Methods

Name Description
GetAgenticIdentity()

Gets the agentic identity from the account's typed properties.

Extension Methods

Name Description
ToCompatChannelAccount(ChannelAccount)

Converts a ChannelAccount to a Bot Framework ChannelAccount.

ToCompatTeamsChannelAccount(ChannelAccount)

Converts a ChannelAccount to a TeamsChannelAccount.

ToCompatTeamsChannelAccount2(ChannelAccount)

Converts a ChannelAccount to a TeamsChannelAccount with all known properties.

Applies to