Interface IUser
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
DisabledAt
When this user was disabled, or null if they are enabled. A disabled user is evicted from their session within the claim-revalidation interval and cannot sign back in.
DateTime? DisabledAt { get; }
Property Value
Remarks
Opt-in by shape, like DirectoryId and Icon: declare the property on
the user entity to persist it, and implement IUserService.SetUserDisabledAsync.
Not the same as Disabled, which means disabled in the external directory — blocked from the organization rather than from this application. The two are independent and are shown separately, for the same reason local and directory deletion are.
DisabledBy
Who disabled this user, or null if they are enabled.
string DisabledBy { get; }
Property Value
string EMail { get; }
Property Value
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
Identity
string Identity { get; }
Property Value
Key
string Key { get; }
Property Value
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
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; }