Audit log
Complete visibility into every access change
See who granted, changed, or revoked access to any item and when. Recorded atomically in your database and streamable to other tools via signed webhooks.
- NowSam Lee gaveAda ParkCan view · Brand assets
- 2 h agoSam Lee gaveDesign teamCan edit · Brand assets
- YesterdaySam Lee invitedada@example.comCan view · Brand assets
01 · Audit log
Every access event, newest first
Grants, role updates, revocations, invitations, and ownership transfers are recorded in one consistent history.
- NowSam Lee gaveAda ParkCan view · Brand assets
- 2 h agoSam Lee gaveDesign teamCan edit · Brand assets
- YesterdaySam Lee invitedada@example.comCan view · Brand assets
- 31 MarSam Lee removedAda ParkBrand assets
02 · Audit log
Atomic records and signed webhooks
Each change commits alongside its history entry in one transaction, and @rolebook/server/webhooks delivers committed changes to downstream systems.
- NowSam Lee gaveDesign teamCan edit · Brand assets
Saved with the change
03 · Audit log
Private by default
Audit history is visible only to people authorized to manage the item. Everyone else receives the same response as for a missing item.
For developers
Page through any item's audit history
Read history newest first with sealed cursors, or subscribe to committed changes with signed webhooks.
Read the docsconst result = await tenant.auditHistory({
resource: { type: "project", id: "brand_assets" },
limit: 50,
});
if (result.ok) {
const { events, nextCursor, exhausted } = result.page;
// events are newest first; pass nextCursor back as cursor for more
}