Account Class
Represents a Teams account/user.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Constructor
Account(*, id: str, aadObjectId: str | None = None, type: Literal['person', 'tag', 'channel', 'team', 'bot'] | None = None, properties: Dict[str, Any] | None = None, isTargeted: bool | None = None, name: str | None = None, email: str | None = None, userRole: str | None = None, role: Literal['agenticUser'] | str | None = None, agenticUserId: str | None = None, agenticAppId: str | None = None, agenticAppBlueprintId: str | None = None, callbackUri: str | None = None, tenantId: str | None = None, **extra_data: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
id
Required
|
|
|
aadObjectId
|
Default value: None
|
|
type
|
Default value: None
|
|
properties
|
Default value: None
|
|
isTargeted
|
Default value: None
|
|
name
|
Default value: None
|
|
email
|
Default value: None
|
|
userRole
|
Default value: None
|
|
role
|
Default value: None
|
|
agenticUserId
|
Default value: None
|
|
agenticAppId
|
Default value: None
|
|
agenticAppBlueprintId
|
Default value: None
|
|
callbackUri
|
Default value: None
|
|
tenantId
|
Default value: None
|
Attributes
aad_object_id
The Azure AD object ID.
aad_object_id: str | None
agentic_app_blueprint_id
The Agent 365 app blueprint ID.
agentic_app_blueprint_id: str | None
agentic_app_id
The Agent 365 app/client ID.
agentic_app_id: str | None
agentic_identity
agentic_user_id
The Agent ID user-shaped identity object ID.
agentic_user_id: str | None
callback_uri
The callback URI associated with the agentic identity.
callback_uri: str | None
Email address for the account, when provided by the channel.
email: str | None
id
The unique identifier for the account.
id: str
is_targeted
Indicates targeted-message routing for this recipient.
Warning
Preview
This field is in preview and may change in the future.
Diagnostic: ExperimentalTeamsTargeted
is_targeted: bool | None
model_config
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
model_config: ClassVar[ConfigDict] = {'alias_generator': AliasGenerator(alias=None, validation_alias=<staticmethod(<function CustomBaseModel.validation_alias_generator>)>, serialization_alias=<staticmethod(<function CustomBaseModel.serialization_alias_generator>)>), 'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True, 'serialize_by_alias': True, 'validate_by_alias': True, 'validate_by_name': True}
name
The name of the account.
name: str | None
properties
Additional properties for the account.
properties: Dict[str, Any] | None
role
The role of the account in the activity.
role: Literal['agenticUser'] | str | None
tenant_id
The tenant ID associated with the account.
tenant_id: str | None
type
The type of account.
type: Literal['person', 'tag', 'channel', 'team', 'bot'] | None
user_role
Role description for the account, when provided by the channel.
user_role: str | None