A dispatcher in the North branch sees only North jobs in the scheduling menu. A colleague forwards an old link to a South job. It opens with the customer's address and a download button. The menu looked right. The record was still available through another path.
In this fictional business, the manager wants evidence that a branch can do its own work and cannot reach another branch's records without a defined reason. Create a test with two branches, two roles, and made-up data. Write the expected results before anyone opens a link.
Define the rule by record and action
Start with a business decision. North dispatch can open and update North jobs. South dispatch can handle South jobs. A regional supervisor may view jobs in both branches for an approved purpose, but that need does not automatically include downloading all customer records. List the differences between viewing, editing, attaching, and exporting.
Use a sandbox with representative settings, fictional records, and explicitly approved test accounts. Give the records short recognizable IDs without personal details. Establish which role and branch each account actually has. A test run by an administrator while impersonating a user can tell a different story from a session with the user's permissions, so record the method and any limitations.
Test the decision made for the actual record
Authentication establishes the identity behind a request. Authorization is the application's decision about whether that identity may take this action on this record. A hidden button can simplify the screen; the request still needs an access check when the application receives it. OWASP's object authorization guidance describes checking permissions against the requested object rather than relying on the interface.
Follow approved test links through the ordinary job view, an attachment link, and a generated report. Include the direct route that first exposed the gap. The expected denial can be a generic unavailable response; it should not return the record or sensitive details about it. Do not guess at identifiers or try routes in a live tenant.
Use a branch access test matrix
- North dispatcher → North jobAllow normal view and authorized update. Verify the new test value appears on the intended job.
- North dispatcher → South job linkDeny access to the record and its attachment. Confirm the response contains no South record data.
- North dispatcher → shared reportThe report includes only authorized North records. Verify the generated file, not just the preview.
- Regional supervisor → both branchesAllow the agreed read access. Keep full export denied unless the supervisor has a separate grant.
Check both branches in both directions if the configuration is meant to be symmetric. One denial does not prove all record types or all paths are protected. Note untested surfaces, such as emailed reports or mobile downloads, and assign an owner if the same rule is supposed to cover them.
Record where the interruption occurred
Use a test record with the role, action, record type, expected result, observed result, and environment. Ask the application owner to trace how authorization was evaluated. NIST's access enforcement control provides a reference for enforcing approved authorizations. Your test shows what the particular application and configuration did. It is not a certification.
In the fictional test, the ordinary South job page denies North as expected after the first fix. The attachment link still returns a test PDF. The application had applied the branch rule at the job view, while the file delivery path used a different decision. The team keeps the case open until an unauthorized session cannot retrieve the test attachment and an approved South session still can. They record whether already issued links expire or require a separate provider action. A result on a fresh link cannot answer what happens to a link issued before the fix.
The report test also checks its contents. The file downloads successfully for North, but success alone cannot prove the filter worked. The reviewer checks the authorized synthetic North IDs are present and the recognizable South IDs are absent. If the report includes a summary count or totals, check those too. They can still reveal information about records the detailed view hides.
Keep the results attached to the release that was tested. Record the build, relevant settings, role assignments, and test accounts. A later migration, a branch rename, or a report template change can affect a path that passed before. Use the same cases after those changes. Retest the allowed and denied paths after the fix. Check whether a legitimate shared workflow requires an exception; document its owner and scope rather than widening everyone to match one supervisor's needs.
For a legitimate exception, add a test that the exception works for its intended owner and that it does not change the results for ordinary dispatchers.
Sources & further reading
Primary references checked November 8, 2026.
- OWASP Broken Object Level AuthorizationExplains why an application must check permission for the requested object.
- NIST Security and Privacy ControlsAC-3 describes enforcing approved authorizations for access to information and resources.
