Design permissions for batch PDF jobs
16 June 2026
Decide what the batch promises its caller before choosing how to handle a forbidden file. A single merged pack that must contain every input should be rejected when one input is unavailable. A set of independent conversions can return individual outcomes, provided a caller cannot use the results to discover another workspace's documents.
Follow a request across two workspaces
Suppose a batch includes a permitted test file from Operations and a restricted one from Payroll. The service identity can process only the Operations file. Check the initiating caller’s entitlement as well as the worker’s permission to read and write. Adding a file to the request must not confer access to it.
| Requested result | Expected behaviour in this example |
|---|---|
| One complete pack | Return a failed batch with no published pack. Do not present an incomplete pack as complete. |
| Two independent output files | Process the Operations item. For the restricted item, return a bounded failure against the caller's submitted reference. Do not return Payroll’s filename, preview, storage path or download link. |
Check access again when serving an output. An authorised job submission should not leave a result URL that another workspace can open. The permission matrix provides separate fields for actor, resource, action and expected decision.
Test the output paths as well as the response
Use two dummy documents containing different recognisable markers. Submit the mixed batch, capture its interaction ID, then check the job result, output listing, previews, error reports and downloadable files available to the caller. Try fetching the restricted result through its direct test route. In the independent-file design, verify that the permitted file actually succeeded while the restricted marker is absent from every checked surface.
A log entry saying “denied” explains the decision. It cannot by itself show what was published. Pair the access decision with the response and storage checks, noting exactly which surfaces were inspected. The negative test worksheet includes direct forbidden requests. If a restricted preview appears or any file has an unexplained outcome, keep the test open with the batch owner.
Part of the Design roles and permissions for a PDF workspace guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
