Skip to content

Auditing who approved what, with mandates: the grant and usage audit trail

How DueReason's org-wide grant audit and mandate usage log let an admin or auditor see every mandate's uses and every grant issued, with a CSV export.

Updated · 7 min read

In short

  • The org-wide Grants page (Settings > Grants) and GET /v1/grants list every grant the organization has issued - which request it came from, when it expires, and whether the executing system has reported back - without opening each approved request one at a time.
  • A mandate (bounded, revocable auto-approval authority) gets its own, separate trail: the mandate usage audit log records every auto-approval any mandate fired, across the whole organization, filterable by action and date range.
  • An owner, admin or auditor can bulk-export a period's mandate usage as CSV straight from the console, the same self-serve shape the receipts and audit-log exports already use.
  • Neither trail opens a wider door than the product already has: reading them needs the same approval:read and mandate:read permissions a person already needs to see the underlying requests and mandates.

A decision receipt proves one decision happened and was not altered afterward. It does not answer a different, very ordinary question an IT or engineering buyer eventually asks: "we let this mandate auto-approve deploys up to a limit - show me every time it actually fired, across the whole organization, without me opening a hundred requests one at a time." DueReason answers that with two separate, org-wide audit surfaces: a grants audit and a mandate usage audit log, each with its own console page and API.

What a mandate is, and why its usage needs its own trail

A mandate is standing, bounded, revocable authority: an owner or admin (or whoever already holds the final say on an action) delegates "approve this automatically, up to this limit, for this long" instead of answering every matching request by hand. A limit is a cumulative amount, a count, or both, tracked per mandate; once a request would push usage past the limit, or the mandate's validity window has passed, it stops auto-approving and the request goes back to being decided by a person. Revoking a mandate stops it from matching any future request immediately - it is not retroactive, so a grant a mandate already issued keeps being a valid, redeemable proof of that one approval even after the mandate that issued it is gone, the same way changing an action's settings later does not undo a grant issued under the old settings.

Every auto-approval a mandate makes still produces the same things a person's approval would: a decided request, a signed grant for whatever executes it, and a decision receipt - labelled as decided under a mandate rather than attributed to whoever configured it, since nobody looked at that particular request. What a mandate adds is a second, narrower question a signed receipt per request does not answer well: not "is this one decision genuine" but "show me everything this mandate did." That is what the mandate usage audit log is for.

The org-wide grants audit: Settings > Grants

Every grant the organization has ever issued - across every action, every mandate, every person who approved something - is listed on the read-only Settings > Grants console page: which request it came from, the action it covers, when it was issued and when it expires, and whether the executing system has since reported the outcome back (succeeded, failed, or not yet executed). This first cut has no date pickers: it simply shows the most recent 92 days of activity, newest usable range first, rather than asking an admin to pick one.

The same data is available as GET /v1/grants (and client.listGrants() in the TypeScript SDK), reading the same 92-day-per-call window and paging through results with a cursor rather than an offset, the same shape the decision-receipts export already uses. Reading it needs the approval:read permission - the same bar opening any one of the underlying requests directly already holds this data to, so the grants audit never surfaces a request a viewer could not already open on its own.

There is no bulk CSV export for grants yet - today it is the console page and the API only. Verifying a specific grant's signature and payload binding is a separate action from browsing this list: use POST /api/v1/grants/verify or the offline JWKS-based check, not the audit list, when the question is "is this one grant genuine" rather than "what has this organization issued."

Mandate usage audit log and CSV export

Where the grants page answers "what has this organization issued," Settings > Mandates > Usage answers "what has this mandate (or every mandate) actually done": one row per auto-approval event, org-wide, newest first, filterable by action and by a from/to date range. Each row names the mandate's action, the request it covered and that request's current status, who the subject of the mandate is, who issued it, how much of a cumulative limit it consumed (when the mandate has one), and when it fired - with a link straight through to the request itself.

A Download CSV button on the same page exports exactly the filtered set on screen as /app/exports/mandate-usage.csv, one row per auto-approval:

ColumnWhat it is
use_idThe usage event's own id.
mandate_idWhich mandate fired.
actionThe action's display name.
subject_type / subjectWho or what the mandate was issued to (a member, a group, or an API key), and its name.
issued_byWho configured the mandate.
request_id / request_title / request_statusThe request this use covered, and its current status.
amountThe cumulative-limit field's value this one use consumed, blank when the mandate has no cumulative limit.
periodThe limit's reset period this use fell into, blank when the mandate has no limit at all.
used_atWhen the auto-approval fired.
request_linkA direct console link to that request.

Browsing the page needs both mandate:read (to look at mandates at all) and approval:read (to see the requests they covered); downloading the CSV additionally needs export:all, the same wider permission the receipts and audit-log exports already require - by default an organization's owner, admin and auditor roles, never a narrower reviewer role. Unlike the grants audit, there is no fixed maximum date range per export call here: ask for a quarter or a full year in one download and the export pages through every matching row by itself.

A single mandate's own usage also shows on that mandate's detail page, scoped to just its own history (same fields, minus the mandate and subject columns the org-wide view needs to tell mandates apart) - useful when someone is about to revoke one mandate and wants to see what it actually did first, rather than filtering the org-wide browser down to one mandate by hand.

Who this is for

This pair of pages is built for the question an IT or engineering buyer asks once a mandate has been running for a while and something needs explaining after the fact: "can you show me every time this mandate was used, and every grant that came out of it, without me filing a support ticket or opening a hundred requests by hand." An admin preparing for an internal review, or an auditor who was never involved in configuring the mandate in the first place, gets the same self-serve answer the console already gives for decisions in general - narrowed to exactly the delegated authority in question.

Reading it from the API or an agent

Both surfaces are also plain REST endpoints, usable from a script or from an agent that already holds an API key: GET /v1/grants (from/to/cursor/limit) and GET /v1/mandates/usage (mandateId/actionKey/from/to/cursor/limit), both mirrored in @duereason/sdk as listGrants and listMandateUsage - see the API reference for the full request and response shape, authentication and pagination.

Limits

The grants audit caps each call's from/to window at 92 days, the same cap the decision-receipts export uses; a longer review needs a few calls run back to back rather than one wide one. The mandate usage log has no such cap on the date range itself, only on how many rows one page returns (the browser and the CSV export both page through the rest automatically). Neither trail shows a mandate's raw signed grant token or a request's full payload - follow a row's own link to open that one request when more detail than the audit columns show is actually needed.

Questions

Does revoking a mandate invalidate the grants it already issued?
No. Revoking a mandate stops it from matching any future request immediately, but a grant it already issued stays a valid, redeemable proof of that one approval - it is an immutable signed snapshot of a decision that already happened, not a live permission the mandate can take back.
Who can see the grants audit or the mandate usage log?
Browsing either needs the same approval:read permission (plus mandate:read for mandate usage) that already governs who can open the underlying requests and mandates directly - by default an organization's owner, admin and auditor roles. Downloading the mandate usage CSV additionally needs export:all.
Can I export the grants audit as a CSV the way mandate usage can?
Not yet. The grants audit is a console page and a paginated API (GET /v1/grants) today; the bulk CSV export exists for mandate usage, decision receipts and the audit ledger, but not yet for grants.
Is there a maximum date range for the mandate usage CSV, the way there is for grants?
No fixed cap on the date range itself - ask for a year in one export and it pages through every matching row by itself. Only the grants audit (and the decision-receipts export) cap a single call's from/to window, at 92 days.
Can I filter the org-wide mandate usage browser down to one specific mandate?
The console browser filters by action and date range; the GET /v1/mandates/usage API also accepts a mandateId filter directly. A single mandate's own detail page additionally shows just its own usage history without any filtering needed.

See your own organization's grant and mandate usage trail

Create an account, issue a mandate, and its first auto-approval already shows up on both audit pages.

Create your account

Sources

This guide explains the regulation as we read it; it is not legal advice. Check the official text and your national law, which may add obligations.

Start with DueReason

Create a free account, try it live, or talk to us about your workflow.

Get product updates