Rolebook

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.

  1. NowSam Lee gaveAda ParkCan view · Brand assets
  2. 2 h agoSam Lee gaveDesign teamCan edit · Brand assets
  3. 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.

  1. NowSam Lee gaveAda ParkCan view · Brand assets
  2. 2 h agoSam Lee gaveDesign teamCan edit · Brand assets
  3. YesterdaySam Lee invitedada@example.comCan view · Brand assets
  4. 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.

  1. 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.

SLSam LeeOwnerCan read history
APAda ParkCan viewNot found

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 docs
audit.ts
const 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
}

Ship enterprise-ready access control from day one.

Allow wisely.