Table of Contents

Class TenantSuperAdminAuditLogEntry

Namespace
KadicAuth.Domain.Entities
Assembly
KadicAuth.Domain.dll

Append-only audit trail for tenant-super-admin membership changes.

Writes happen in the same transaction as the corresponding mutation on TenantSuperAdmin, so the log cannot desync from the membership table.

public sealed class TenantSuperAdminAuditLogEntry
Inheritance
object
TenantSuperAdminAuditLogEntry

Properties

ActorUserId

public Guid? ActorUserId { get; }

Property Value

Guid?

EventType

public string EventType { get; }

Property Value

string

Id

public Guid Id { get; }

Property Value

Guid

Metadata

public string? Metadata { get; }

Property Value

string

OccurredAtUtc

public DateTime OccurredAtUtc { get; }

Property Value

DateTime

Reason

public string? Reason { get; }

Property Value

string

TargetUserId

public Guid TargetUserId { get; }

Property Value

Guid

TenantId

public Guid TenantId { get; }

Property Value

Guid

Methods

Granted(Guid, Guid, Guid?, string)

public static TenantSuperAdminAuditLogEntry Granted(Guid tenantId, Guid targetUserId, Guid? actorUserId, string reason)

Parameters

tenantId Guid
targetUserId Guid
actorUserId Guid?
reason string

Returns

TenantSuperAdminAuditLogEntry

ReGranted(Guid, Guid, Guid, string)

public static TenantSuperAdminAuditLogEntry ReGranted(Guid tenantId, Guid targetUserId, Guid actorUserId, string reason)

Parameters

tenantId Guid
targetUserId Guid
actorUserId Guid
reason string

Returns

TenantSuperAdminAuditLogEntry

Revoked(Guid, Guid, Guid, string)

public static TenantSuperAdminAuditLogEntry Revoked(Guid tenantId, Guid targetUserId, Guid actorUserId, string reason)

Parameters

tenantId Guid
targetUserId Guid
actorUserId Guid
reason string

Returns

TenantSuperAdminAuditLogEntry