
Your product has separate customer workspaces, a role picker and an account switcher. Those features make the boundary visible. To check whether it holds, follow one private record through the requests that read, change and export it. A small, well-documented test can reveal where the permission decision actually happens.
Define the customer boundary before testing
Start with a business rule your product owner can confirm: a member of Customer A may read A’s project files; only A’s administrators may change billing details; nobody in A may read B’s private files. Shared workspaces, invited collaborators and support access need their own explicit rules. Otherwise, testers and engineers may disagree about whether a result is a defect.
A valid login does not settle those decisions. OWASP recommends denying access unless it has been granted and checking permission on every request. Include the direct API request even when the interface hides a button. OWASP authorization guidance.
Turn the policy into a small permission matrix
Use this illustrative matrix for a project-management application. “A member” and “A administrator” describe accounts you control; the files and billing records contain invented data. Replace the rows with your product’s actual rules before testing. A named resource and action make the expected result reviewable. OWASP authorization test matrices.
| Actor | Requested action | Expected result |
|---|---|---|
| A member | Read A’s private project file | Allow |
| A member | Read B’s private project file | Deny; return no B content |
| A member | Change A’s billing contact | Deny; retain the original contact |
| A administrator | Change A’s billing contact | Allow the approved test change |
| A administrator | Export B’s project files | Deny; create no accessible export |
| Former A member | Read A’s private project file | Deny according to the documented revocation policy |
Add an owner, endpoint and test-record identifier beside each row in your working copy. Keep public files separate from private files. An intentionally public document is a poor control for a test meant to prove customer confidentiality.
Prepare two tenants you control
Use an authorized test environment that reflects the relevant production permission settings. Create Tenant A and Tenant B, each with a separate session. Seed one private file in each with a distinctive harmless marker, such as “A review sample” and “B review sample.” Verify that each account can read its own file before testing the boundary.
Keep the test accounts out of each other’s memberships. Check inherited organization access, invitation status and support privileges. An account accidentally added to both tenants can make an unauthorized-looking result legitimate.
Two accounts with different access scopes are a standard way to check object authorization. OWASP also stresses that unpredictable identifiers still require permission checks. Record B’s identifier from your controlled B session; there is no need to guess customer identifiers. OWASP IDOR prevention.
Our guide to preparing authenticated test access covers the session and account setup that keeps these workflows testable.
Compare an allowed request with a denied request
Capture A’s successful request for its own synthetic file. Keep A’s session and substitute the known identifier for B’s synthetic file, changing only the field under examination. Compare the response body, downloaded content and any resulting server-side action. OWASP requires object permission checks for endpoints that act on a supplied identifier. OWASP API object authorization.
For writes, use a reversible field on a disposable record, such as a test document label. Record the original value, attempt the disallowed change, and verify the stored value through B’s authorized session. Disable external notifications and real billing effects. Stop after sufficient evidence; repeatedly fetching other records adds little value.
Judge the business outcome as well as the response code. A denial page that includes B’s filename or a refused request that still creates an export needs investigation. A generic success response can also conceal an operation that made no change.
Two controlled tenants. One boundary to verify.
An illustrative file request keeps the actor, record owner and observed result explicit.
Define the rule
A can read A’s private file; B’s file requires B’s permission.
Establish the baseline
Read each tenant’s synthetic file with its own account.
Test the boundary
Keep A’s session and request B’s known test file.
Verify and retest
Inspect returned data and side effects, then repeat after the fix.
Known synthetic records make the test reproducible without probing unrelated customer data.
Follow the record beyond its detail page
Review the paths your customers use around the same record: search results, list filters, bulk exports, attachments, previews and background jobs. Check whether a cached response from A can appear when B performs the same operation. For an export, inspect both the job status and the eventual download.
OWASP’s multi-tenant guidance calls for verified tenant context, tenant-aware query and cache boundaries, and authorization when asynchronous work is consumed. Carry the customer identity through those layers; a tenant value supplied by a browser or queued message needs validation. OWASP multi-tenant security.
Choose adjacent cases based on architecture. If files use a separate storage service, test that route. If the product supports account switching, repeat the workflow after switching in the same browser. Record untested routes so the result has an honest scope.
Keep evidence that survives the fix
For each case, retain the build identifier, actor and role, tenant, synthetic object, sanitized request, expected result and observed result. Include a before-and-after value for writes. Remove tokens and unrelated content. A short evidence record lets the engineer reproduce the specific failure without access to customer data.
After the repair, repeat the original failing case, its permitted counterpart and relevant neighboring routes. Add the boundary case to the application’s regression suite. OWASP’s regression guidance covers horizontal access, role changes and cross-tenant queries as distinct patterns. OWASP authorization regression testing.
State the conclusion narrowly: the named cases passed on the tested build with the listed roles. Our guide to validating and prioritizing findings explains how evidence supports a clear repair decision.
Put your customer workflows in scope
Sectiv is a security software subscription configured for each business, combining web, API and source review with AI validation and expert configuration and support. Bring your tenant model, permission matrix and sensitive workflows to discuss a Sectiv assessment. Agree the accounts, routes and evidence needed to evaluate your customer boundaries.
Common questions
Does using UUIDs prevent cross-tenant access?
UUIDs make identifiers harder to guess. They do not decide whether an account is allowed to access a record. Test with a known identifier from your second controlled tenant and verify that the application enforces the permission rule.
Is one account in each tenant enough?
It is a useful starting point for a customer-boundary check. Products with administrators, readers, shared resources or support access need additional roles and relationships. Start with the smallest matrix that expresses the sensitive workflow, then expand it where permissions differ.
Should a denied request always return 403?
The response should follow your documented API contract; some applications use 404 to avoid revealing whether a private object exists. Also verify that no protected data is returned and no unauthorized change or export occurs. A status code alone is incomplete evidence.
YOUR NEXT STEP
Check the boundaries your customers depend on.
Reviewing a SaaS customer boundary? Bring your tenant model and sensitive workflows to discuss the right Sectiv assessment scope.
Book a demo