Class PlatformAdminAuditLogEntry
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
-
objectPlatformAdminAuditLogEntry
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
actorUserIdGuidendpointstringmetadataJsonstring
Returns
Granted(Guid, Guid?, string)
public static PlatformAdminAuditLogEntry Granted(Guid targetUserId, Guid? actorUserId, string reason)
Parameters
targetUserIdGuidactorUserIdGuid?reasonstring
Returns
ReGranted(Guid, Guid, string)
public static PlatformAdminAuditLogEntry ReGranted(Guid targetUserId, Guid actorUserId, string reason)
Parameters
targetUserIdGuidactorUserIdGuidreasonstring
Returns
Revoked(Guid, Guid, string)
public static PlatformAdminAuditLogEntry Revoked(Guid targetUserId, Guid actorUserId, string reason)
Parameters
targetUserIdGuidactorUserIdGuidreasonstring