Before sharing client documents across regional teams, define the account relationship
A portal may serve several organizations or regional groups while giving each contact one convenient sign-in. That convenience creates an important design question: which relationship authorizes a person to open a particular document?
A recognizable email address, a successful login or a language preference does not answer it. The organization must define the permitted access, and the application must enforce it at the relevant resource.
Consider a fictional Canadian membership service with two separately administered client organizations, O-41 and O-42. They are invented records for a private design review, not actual customers.
Identify the resource and the person separately
O-41 owns document D-11. O-42 owns D-12. Contact U-7 is authorized to read O-41's document; contact U-8 is authorized to read O-42's document. Neither contact is entitled to the other organization's records.
The intended starting matrix is small enough to inspect directly:
| Contact | D-11, owned by O-41 | D-12, owned by O-42 |
|---|---|---|
| U-7 | Read permitted | Access denied |
| U-8 | Access denied | Read permitted |
The document's language does not change this relationship. A French version and an English version may have different revision states, but both still require the appropriate access decision.
Ask what the current application actually checks
The fictional prototype hides D-12 from U-7's document list. However, its download endpoint checks only that the person is signed in. When U-7 opens a previously supplied direct D-12 test link, the endpoint returns the file.
The list looks correct while the resource access is wrong. Removing a navigation link would not resolve that defect. Nor would making the document identifier difficult to guess establish the missing account relationship.
OWASP's authorization guidance distinguishes authentication from authorization and recommends checking permissions on every request, with access denied by default. The design question here is how those checks apply to the organization's approved person-to-account relationship.
Establish the correction without broadening access
The authorized project team makes document access depend on the current permitted relationship between the contact, organization and resource. In the example, U-7 can read D-11 because the active O-41 relationship allows it; the D-12 request is denied because that relationship does not extend to O-42.
The same rule applies to the supported download path as to the list. If a separate storage provider serves files, its access mechanism must also be reviewed. A protected page does not automatically protect an independently public file URL.
This is a requirement for the fictional system, not a claim that a particular provider already exposes the necessary controls. The implementation and its tests must follow the real platform's supported architecture.
Review removal and a previously available link
Now remove U-7's O-41 access through the authorized test process. A new request for D-11 must be denied, including one made through a saved direct link. The interface should provide an appropriate recovery or contact route without revealing another organization's private details.
The test concerns future access through the application. It cannot recall a document that the person previously downloaded legitimately. The organization's handling and contractual decisions must account for that separate issue.
U-8's permitted access to D-12 remains unchanged. This comparison helps establish that removal affected the intended relationship rather than disabling all client access.
Decide what administrative staff may do
A support employee may need to identify why an invitation failed without being entitled to every document. Another role may have authority to grant access after the organization's required verification. Those are distinct permissions.
The design review should list the permitted actions for each relevant role, including invitations, removal and recovery. Temporary coverage should not silently become unrestricted administrative access. Log and review arrangements should be proportionate to the system and its information.
Keep the access model understandable after launch
The handover should explain which record establishes membership, who can change it and how an access failure is investigated. Include representative tests for ordinary access, an unrelated organization and a removed relationship.
Your advisers determine the applicable privacy and professional requirements. The technical work must then implement and verify the approved access model, rather than treating sign-in as proof that every available document may be opened. Discuss the customer-account relationship before designing the portal.
