<PackageReference Include="Microsoft.Identity.Client" Version="4.85.2" />

Microsoft.Identity.Client.Account

sealed class Account : IAccount
Contains information about a single account. A user can be present in multiple directories and thus have multiple accounts. This information is used for token cache lookup and enforcing the user session on the STS authorize endpoint.
public string AccountSource { get; }

Gets the source of the account. For example, device code flow, broker etc.

public string Environment { get; }

Gets the environment associated with the account. For example, login.microsoftonline.com.

public AccountId HomeAccountId { get; }

Gets additional account identifiers, such as object ID, tenant ID, and the unique identifier.

Gets the list of tenant profiles.

public string Username { get; }

Gets the username associated with the account. For example, account@example.com.

public Account(string homeAccountId, string username, string environment, string accountsource = null, IDictionary<string, string> wamAccountIds = null, IEnumerable<TenantProfile> tenantProfiles = null)

Constructor for the account instance.