Testing AI With Two Customer Accounts
October 19, 2026
Jonathan Gafill, Founder and Product Lead, OpsAVO
Imagine two unrelated service companies using the same software platform. Each has customer records, work orders, and private notes. Both use an AI assistant to find information and help with routine tasks.
When one company asks about an outstanding job, the answer should come from information that company is entitled to see. The other company's notes should remain outside the response, even if they happen to be relevant to the wording of the question.
That requirement gives us a straightforward place to begin testing: create two controlled customer accounts with different records and establish which information each is allowed to access.
This is an established security testing technique. OWASP's Web Security Testing Guide recommends using at least two users, and often more, when checking whether one user can reach another user's protected resources. Knowing which records belong to each test identity makes the expected result much clearer. OWASP guidance on testing object access
At OpsAVO, we are building this kind of testing into our lab work for customers' benefit. The starting design uses dedicated identities and synthetic records in a controlled environment. We want to examine the boundaries an ordinary user encounters through the product and the requests made behind its screens.
The first check should establish that each account works. Test Company A should be able to retrieve its own known record. Test Company B should be able to retrieve its own. Only then does a denied cross-company request become useful evidence of the boundary we intended to test.
Otherwise, an expired login or broken search feature might make everything inaccessible and create a misleading impression of success.
A practical test then follows a known record through the places where it can appear: the detail page, search results, a download, or an AI-generated summary. The expected restriction should apply throughout that journey. Hiding a link in the interface alone does not establish that the underlying information is protected; the application needs to enforce access when the resource is requested. OWASP authorization guidance
AI adds another route worth examining. An assistant may retrieve relevant passages from documents before composing an answer. A well-written answer can still be inappropriate if its source material belongs to someone else. OWASP identifies inadequate retrieval permissions and cross-context leakage as risks in systems that use shared vector stores. OWASP guidance on vector and embedding weaknesses
For our planned lab scenarios, that means looking beyond the final paragraph. A document title, a citation, or a previously cached answer can also reveal information. Each surface needs an expected result and evidence that can be reviewed.
The test setup matters. We need separate browser sessions so that one account's login state does not carry into the other's test. Playwright supports isolated browser contexts and warns that saved authentication state can contain credentials capable of impersonating an account. Those files deserve protection alongside the test records and screenshots. Playwright authentication guidance
Two accounts also have limits. Two users in different companies test a different boundary from an administrator and an employee within one company. A fuller test plan may need both arrangements, along with different subscription plans or sharing permissions. The intended access rules should determine the identities we add.
For customers, the useful output is a specific account of what was checked: which identities were used, which resources were involved, what access was expected, and what the application returned. A small, well-defined test can establish something valuable about that scenario. Broader assurance requires broader coverage and other forms of security review.