# AuditOptions.getPrincipal property · @imqueue/pg-prisma

Source: https://imqueue.org/api/pg-prisma/latest/pg-prisma.auditoptions.getprincipal/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-prisma 1.0.1 — generated reference, not hand-written

Resolves the actor to record, or a falsy value to record none.

**Signature:**

```typescript
getPrincipal: () => unknown;
```

## Remarks

Called per write and serialized with `JSON.stringify`, so it can return any shape you want stored. Resolving it lazily is what keeps this extension ignorant of where the actor comes from — a request context, an auth token, or nothing at all.

