Branches: who sees and changes what
For: product owners, BAs and business admins. The rule: you see and change only the branches you are assigned to.
A Zyrohs business can run several branches (locations). Products and contacts are shared by the whole business, but sales, purchases, stock, payments, expenses, registers and reports belong to one branch. Each user is assigned one or more branches on Users › User list (the Location field). This page sets out what that assignment allows, and why.

The rules
- No branch, no access. A user assigned to no branch cannot sign in: "Your account is not assigned to any branch. Ask an administrator to assign one."
- One branch at a time. You work in your Active Location (Profile). A user with one branch never chooses. A user with several picks one, and a screen that sends none is asked to choose.
- Lists, searches, reports and the dashboard show your branches only. A screen that shows one branch shows your active one. A screen that offers All branches (contact payment history, production list, stock alerts) means all of your branches, not the whole business. Cash flow and the cheque register show one branch at a time.
- Another branch's record is "not found". Opening it by link or number behaves as if it did not exist.
- You cannot change another branch's records. Edit, delete, attach, pay, or move a record to another branch: all refused and nothing changes. The message is "You are not assigned to the branch of this record."
- You cannot name a branch you do not hold. Creating a record there, filtering or running a report for it, a product's branch, a contact's opening balance, a product import row: refused.
- Administrators follow the same rule. The Administrator role does not see past its branches. Give the owner every branch. Two exceptions: administrators list every user, and the activity log's readers see the whole business (there the branch is only a filter).
- The user list follows branches too. Anyone who is not an administrator sees only users who share a branch with them, and can give only branches they hold (see Users and roles: who can grant what).
- Some checks always count every branch, so branch limits cannot be used to get around them: the quantity already returned against a sale or purchase, the "this contact has transactions" warning, duplicate checks on online-store order imports, and register cash totals.
Examples
Asha works at Branch A. Ravi works at A and B. The owner has every branch.
| Who | Tries to… | Result |
|---|---|---|
| Asha | open the sales list | ✅ Branch A's sales |
| Asha | open Branch B's invoice from a shared link | ❌ "not found" |
| Asha | pay, edit or delete Branch B's invoice (by any route) | ❌ refused, nothing changes |
| Asha | run the profit and loss report for Branch B | ❌ refused |
| Asha | return 5 items when 8 of 10 were already returned at Branch B | ❌ refused: only 2 are left to return |
| Ravi | open the sales list | ✅ the branch chosen as their Active Location |
| Ravi | stock alerts, All locations | ✅ A and B |
| Ravi | open the user list | ✅ users at A or B; not a user who works only at C |
| Owner | anything, at any branch | ✅ |
What this protects against
| Before (until October 2026) | Now |
|---|---|
| A user could open, change, delete or pay another branch's sale, purchase, expense or payment by its number | Refused; the record is "not found" or the change is refused |
| A request that left the branch out was answered with every branch | It is answered with the user's own branch |
| The database-level branch filter was not working, so some lists (recent transactions, sale orders, stock alerts for all locations) showed the whole business | Every list shows the user's branches only |
| A user could name another branch in a report or filter | Refused |
| Refusals looked like system errors ("Could not commit JPA transaction") | A clear message, or "not found" |
| Anyone with the user list saw every user in the business | Only users who share a branch, unless an administrator |
Decisions
| Date | Decision | Reason |
|---|---|---|
| 2026-10-06 | No branch named: the user's only branch; several, they choose; none, refused | Leaving the branch out used to show every branch |
| 2026-10-06 | A user with no branch cannot sign in | They would be refused on every screen; say it once |
| 2026-10-17 | All branches on contact payment history and the production list means all the user's branches | Those screens offer the choice; the whole business was too wide |
| 2026-10-17 | Cash flow and the cheque register are one branch at a time | They are cash books for one branch |
| 2026-10-17 | A product's branch, a contact's opening balance and import rows must be the user's branches | Same rule for writes as for reads |
| 2026-10-18 | Branch limits apply to every list and record, administrators included | One rule; the owner is given every branch |
| 2026-10-18 | Changes to another branch's record are refused at once, with no warning-only period | Same choice as for endpoint rights (A3): enforce, do not report |
| 2026-10-18 | Stock alerts for All locations means all the user's branches | Same as rule 3 |
| 2026-10-18 | Returned quantity, contact-has-transactions, store-order duplicates and register cash totals count every branch | Otherwise a branch limit would let a return exceed the sale, or a duplicate order in |
| 2026-10-19 | Administrators list every user; others list users who share a branch | Staff should not see the whole company's staff |
| 2026-10-19 | A refusal says why; another branch's record is "not found" | Users were shown system errors |
Open questions
These need a decision. Today's behaviour is in brackets.
| Question | Today |
|---|---|
| May a user at A and B record a payment at B against A's invoice? | Allowed; the payment is booked at B |
| May one document cross branches: goods received at B against A's purchase order, or a return at B against A's sale? | Allowed, but a user who lacks A cannot open that return |
| Should an invoice's payment list show payments taken at another branch? | They are left out of the list and the overview's method breakdown |
| Shared accounts with no branch: should one branch's ledger, trial balance and balance sheet include other branches' lines? | They do |
| Settlements: one branch, or the whole business? | Not yet decided |
Related pages
- Branches: admin guide: how shop admins set it up
- Branch scoping: technical design: how the code enforces it
- Runbook: release checks for the security release · Runbook: branch access problems
- Users and roles: who can grant what: who can give which branch
No comments to display
No comments to display