Skip to content
Docs menu

Finance roles and segregation of duties

Who may do what inside Petawork Finance, on which entities, the four segregation of duties rules, and what an agent may never do.

View .md

Two things decide what someone may do in Petawork Finance. Their organisation role decides whether they get in at all (see Who sees it): owner and admin manage Finance, billing reads it, developer and viewer have none. Inside, Finance roles decide what they may do and on which entities. A developer or viewer who holds at least one Finance role gets in too, with exactly what their roles allow and nothing more: clerks, approvers and people who submit expenses are often developers or viewers, so granting the role is all it takes.

Manage Finance roles in Finance > Settings > People and roles (/finance/settings/roles): each member with the roles they hold, a form to grant one (the member, the role, one entity or all of them, and a month range for an auditor) and Revoke. Controllers and auditors see the page; only a controller grants and revokes.

How rights combine

  • Owners and admins are controllers on every entity, with no grant needed.
  • A billing member with no Finance role reads reference data (entities, dimensions, accounts, tax codes, exchange rates, periods) on every entity, and does nothing else.
  • Anyone holding a Finance role gets exactly what their roles allow, on the entities they were granted. A grant on one entity limits them to that entity's rows; the shared rows every entity uses (dimensions, tax codes, shared accounts, exchange rates) stay readable to them.
  • A developer or viewer with a Finance role is let in by that role alone. They see Finance in the app rail, on Home and in their agents' tool lists, and they get exactly what their roles allow on the entities they were granted. They never get the read of every entity a billing member has. Revoking their last role closes Finance to them on their next request; without one they see no Finance anywhere.
  • The credential narrows it. A read-only key or an app with finance:read only reads. An app with finance:write cannot change settings or roles: that needs finance:admin.
  • A role never overrides your organisation's Finance plan (without a Finance module everyone gets 403 product_not_enabled), an app's OAuth scopes, a read-only key or the scopes a managing organisation's staff session carries.

Another entity's rows are invisible: lists leave them out, and asking for one by id answers exactly as an id that does not exist.

Roles

Role May do
controller reference.read, reference.write, period.lock, period.unlock, close.items, roles.read, roles.grant, roles.revoke, policies.write, parties.read, parties.write, parties.verify, bank_account.create, bank_account.verify, approvals.decide, exceptions.read, exceptions.work, exceptions.waive, journals.read, journals.write, capture.read, capture.upload, capture.review, recon.read, recon.import, recon.run, recon.work, bills.create, bills.submit, bills.read, bills.void, po.read, po.write, receipts.create, requests.submit, expenses.submit, expenses.read, billing.issue, billing.read, reports.read, audit.read
ap_clerk reference.read, parties.read, journals.read, reports.read, parties.write, capture.read, capture.upload, capture.review, bills.create, bills.submit, bills.read, bills.void, po.read, po.write, receipts.create, requests.submit, exceptions.read, exceptions.work, exceptions.waive
ar_clerk reference.read, parties.read, journals.read, reports.read, parties.write, capture.read, capture.upload, billing.issue, billing.read, exceptions.read, exceptions.work, exceptions.waive
recon_clerk reference.read, parties.read, journals.read, reports.read, capture.upload, recon.read, recon.import, recon.run, recon.work, exceptions.read, exceptions.work, exceptions.waive
approver reference.read, parties.read, journals.read, reports.read, approvals.decide, expenses.read
requester reference.read, parties.read, capture.upload, expenses.submit, expenses.read, bills.create, requests.submit
payment_preparer reference.read, parties.read, journals.read, reports.read, payments.prepare, bills.read
payment_releaser reference.read, parties.read, reports.read, payments.release
vendor_admin reference.read, parties.read, parties.write, parties.verify, bank_account.create, bank_account.verify
auditor reference.read, roles.read, parties.read, journals.read, reports.read, audit.read, exceptions.read, capture.read, recon.read, bills.read, expenses.read, billing.read, po.read

A controller runs Finance but does not move money: preparing and releasing payments are their own roles, granted on purpose. An auditor only reads, and an auditor's grant can be limited to a range of months: they see only those months.

What the actions cover:

Action What it allows
reference.read, reference.write Read, or add and change, entities, dimensions, accounts, tax codes and exchange rates
period.lock, period.unlock Close or lock a month, or take it out of locked
close.items Add, change and tick the controller's own items on the close checklist
roles.read, roles.grant, roles.revoke See, give and take back Finance roles
policies.write Change policies, approval policies and agents' jobs
parties.read, parties.write, parties.verify Read, change and verify vendors and customers
bank_account.create, bank_account.verify Add or change a party's bank details, and confirm them
approvals.decide Approve or reject an item waiting for you (an agent's approval counts only where the approval step allows agents)
exceptions.read, exceptions.work, exceptions.waive Read the exceptions queue, work it (assign, resolve), or waive an exception: a clerk waives low severity only, medium and above needs a controller
journals.read Read the journal outbox
journals.write Retry, void or reverse a journal in the outbox (journals)
capture.read, capture.upload, capture.review See the documents in Finance > Documents, send one in, check what capture read or reject a document (Finance documents)
recon.read, recon.import See reconciliation sources, their imports and records, rulesets, contracts, runs and matches; set up a source, confirm its column mapping and import files (Reconciliation sources)
recon.run, recon.work Start a reconciliation and change its rulesets and contracts, match and clear its items
bills.create, bills.submit Enter a bill (and change or dispute it), send it for approval
bills.read, bills.void See the bills, void one (an approved one also needs journals.write)
po.read, po.write See purchase orders, their receipts and the match tolerances; create, change, send for approval and close one (Purchase orders)
receipts.create Record goods received against an issued purchase order
requests.submit Ask to buy something: file, change, submit and cancel your own purchase requests
payments.prepare, payments.release Build a payment run, release it or export its file
expenses.submit, expenses.read File, change and submit your own expenses and reports; see expenses: your own, every member's on the entity for a controller or auditor, and a report you are asked to approve
billing.issue Create, change and issue an invoice to a customer, void it, credit it, send it and import open invoices (sales invoices)
billing.read Read sales invoices and credit memos
reports.read, audit.read Read reports, read the audit trail

The actions for parties, approvals, payments and the modules are checked as each of those arrives.

Segregation of duties

Four rules, checked when a configuration is saved and again when the action runs:

  1. No self-approval. Whoever requested an item is never its final approver.
  2. Bank details. Whoever created or changed a vendor's bank details cannot approve or release a payment to that vendor for 30 days after the change, one monthly payment cycle, so a changed account always meets someone else's eyes before money goes to it.
  3. Prepare or release, not both. The person who prepared a payment run cannot release it. When roles are granted, one member never holds both payment_preparer and payment_releaser on the same entity (a grant on every entity overlaps every entity): the grant is refused with the reason.
  4. Approval chains. A chain that would let one person both approve and release a payment is refused when saved, naming the person and the step.

Each refusal says why in plain words. Every grant and revocation is written to the audit log with the grant before and after. Revoked grants are kept, so the history of who held which role stays.

Agents

An agent acting through MCP has the Finance roles granted to its own member ref (agent:<id>), and reads reference data without any. For these rules an agent and the person who configured its job count as the same party.

An agent is never given payment_releaser: the grant is refused, and the database refuses it too. Whatever roles it holds, an agent never releases or exports a payment run, creates or verifies bank details, verifies a vendor, locks or unlocks a period, waives an exception above low severity, or changes policies, approval chains, roles or its own job.

For agents

Tool Scope What it does
finance_role_list finance:read Who holds which role, on which entity, with an auditor's months; revoked: true adds the history
finance_role_grant finance:admin Give a member or an agent a role on one entity or all of them
finance_role_revoke finance:admin Take a grant back by its id

The REST twins are GET /api/v1/finance/roles, POST /api/v1/finance/roles and POST /api/v1/finance/roles/{id}/revoke.

Today's limit

Finance roles add rights inside Finance; they do not open it. Today only owners and admins (manage) and billing members (read) get into Finance, so a clerk needs one of those organisation roles before a Finance role does anything for them.