Table of Contents

Class PlatformAdminAuditLogEntry

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

Append-only audit trail for platform-admin membership changes and (optionally) for cross-tenant operations executed under platform-admin privileges.

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

public sealed class PlatformAdminAuditLogEntry
Inheritance
object
PlatformAdminAuditLogEntry

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

Methods

CrossTenantAction(Guid, string, string?)

public static PlatformAdminAuditLogEntry CrossTenantAction(Guid actorUserId, string endpoint, string? metadataJson)

Parameters

actorUserId Guid
endpoint string
metadataJson string

Returns

PlatformAdminAuditLogEntry

Granted(Guid, Guid?, string)

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

Parameters

targetUserId Guid
actorUserId Guid?
reason string

Returns

PlatformAdminAuditLogEntry

ReGranted(Guid, Guid, string)

public static PlatformAdminAuditLogEntry ReGranted(Guid targetUserId, Guid actorUserId, string reason)

Parameters

targetUserId Guid
actorUserId Guid
reason string

Returns

PlatformAdminAuditLogEntry

Revoked(Guid, Guid, string)

public static PlatformAdminAuditLogEntry Revoked(Guid targetUserId, Guid actorUserId, string reason)

Parameters

targetUserId Guid
actorUserId Guid
reason string

Returns

PlatformAdminAuditLogEntry