Interface ITeam
public interface ITeam
Properties
ConsentAccessLevel
Access level granted to consented roles. Null falls back to the configured default consent level.
AccessLevel? ConsentAccessLevel { get; }
Property Value
ConsentedRoles
Global roles that have been granted access to this team via consent. Null or empty means no consent granted.
string[] ConsentedRoles { get; }
Property Value
- string[]
CustomRoles
Custom roles defined at runtime for this team (created / updated / deleted without a code deploy). Null or empty means only code-registered roles apply. Each role's scopes are constrained to app-registered scopes.
IReadOnlyList<TenantRoleDefinition> CustomRoles { get; }
Property Value
DeletedAt
When the team was soft-deleted, or null while it is live.
DateTime? DeletedAt { get; }
Property Value
Remarks
A default interface member, so a host implementing ITeam directly keeps compiling — the same reason ConsentedRoles is one.
A soft-deleted team is excluded from every read and grants no access; it exists so a deletion can be undone, and so its storage can be dropped later as a separate, more privileged act.
DeletedBy
Identity of whoever soft-deleted the team, or null while it is live.
string DeletedBy { get; }
Property Value
Icon
string Icon { get; }
Property Value
IsDeleted
Whether the team is soft-deleted.
bool IsDeleted { get; }
Property Value
Remarks
Derived from DeletedAt rather than stored beside it. Two fields that must agree eventually disagree — a restore that clears one and not the other leaves a team that is deleted by one reading and live by the other, and every read path then depends on which it happened to consult. One value, one answer.
Key
string Key { get; }
Property Value
Name
string Name { get; }