Table of Contents

Interface IUser

Namespace
Tharga.Team
Assembly
Tharga.Team.dll
public interface IUser

Properties

DirectoryId

The user's id in the external directory (for Microsoft Entra ID: the 'oid' claim / Graph object id). Defaults to null. Captured automatically for new users and backfilled for existing users on their next resolve; used by IUserDirectoryService to verify and delete the directory user.

string DirectoryId { get; }

Property Value

string

EMail

string EMail { get; }

Property Value

string

Icon

Reference to the user's uploaded icon (from IIconStore), or null. When set, it takes precedence over Gravatar in avatar resolution. Opt-in: declare the property on the user entity to persist it (the same shape-based opt-in as DirectoryId / LastSeen).

string Icon { get; }

Property Value

string

Identity

string Identity { get; }

Property Value

string

Key

string Key { get; }

Property Value

string

LastSeen

When the user last made an authenticated request. Defaults to null. Stamped by the user service at most once per configured interval (see LastSeenStampInterval), so the value is approximate within that interval. Distinct from the per-team-member LastSeen, which tracks team selection.

DateTime? LastSeen { get; }

Property Value

DateTime?

Name

Display name for the user. Defaults to null. Consumers should populate this from the 'name' claim in CreateUserEntityAsync. Used for default team names and member display names.

string Name { get; }

Property Value

string