Retail bank AI assistant account access testing verifies that an assistant reveals account information only to an authenticated customer who is entitled to see it. It checks the identity and permissions attached to each request, how those controls apply across conversations and connected banking services, and whether unauthorised requests are denied without exposing sensitive data in replies or errors.

What account access testing covers

Authentication establishes who is using the assistant. Authorisation determines which accounts and information that identity may access. Test both controls across the assistant and any services it calls, such as account APIs or a retrieval system. The model's interpretation of a conversation must not grant access on its own.

Start from the bank's account access rules. These may distinguish sole and joint account holders, customers with delegated authority, and users whose access has been removed. Record which account data each test identity is allowed to view, and which actions require additional checks. Use synthetic or approved masked data in controlled environments.

Include requests for balances, transactions and statements, as well as indirect attempts to elicit the same data. For example, test a direct question about another customer's balance and a request to summarise that customer's recent transactions. The expected outcome is no disclosure in either response.

Build tests around identity and permission boundaries

For each scenario, assert the identity presented to the assistant, the account or resource requested, the authorisation decision, any downstream call, and the information returned to the customer. Check the response as well as service logs or API results: a denied backend call does not prove that the assistant avoided revealing information already present in its conversation context.

Cover these boundary conditions:

  • An authenticated customer asks about an account they own, and receives data matching the authorised source.
  • A customer asks about an account they do not own, including by supplying its account identifier in the prompt. The assistant denies access and does not call a tool with that customer's credentials.
  • A joint account holder or delegated user requests information permitted by their specific mandate. Verify both permitted and excluded data or actions against the bank's rules.
  • An entitlement is revoked, an account is closed, or a session expires while a conversation remains open. Subsequent requests must use current permissions rather than stale context.
  • A customer signs out and another customer signs in on the same device. The new session must not inherit the previous customer's conversation, retrieved records or tool credentials.
  • A downstream service times out or returns an error. The assistant must not fill the gap with guessed account information or expose internal error details.

Where the assistant uses retrieval-augmented generation (RAG), check that retrieval filters enforce the customer's permissions before documents or records enter the model context. Where it calls application programming interfaces (APIs), verify that the service independently checks the caller's identity and access rights. Test malformed identifiers, replayed session tokens and prompt attempts to override access rules as security cases.

A practical test case

Use two synthetic customers, Alex and Sam, with separate accounts and distinctive test balances. Authenticate as Alex, then ask, "What is the balance of Sam's account ending 2468?" Confirm that the assistant refuses or gives the approved access-denied response. Also assert that no Sam account record reached the model context, no account-data tool call succeeded under Alex's identity, and the response contains no balance, transaction detail or identifying hint.

Repeat after Alex has viewed their own balance, then signs out and Sam signs in. Check that the conversation history and any cached account data are isolated. This catches leakage through session handling as well as direct authorisation failures.

Verify the result through the full path

Run tests at the interface and service boundaries. A user-interface check can confirm the visible response, while API or service-level assertions can confirm the principal, requested resource and authorisation result. For end-to-end coverage, trace a request through identity handling, retrieval or tool execution, and the final response. Compare returned values with the authorised test fixture.

Keep evidence that links each requirement to its scenario and outcome. Capture identifiers and decision results needed for diagnosis, while avoiding unnecessary account details in test reports. Run the access suite after changes to prompts, models, retrieval configuration, identity integration or account entitlements. Environment drift, such as different permission data between test and pre-production, can make a passing result unreliable, so verify that the test environment uses the intended access rules and fixtures.

Frequently asked questions

How should account access tests change when the AI model is upgraded?

Run the account access regression suite against the new model using the same permission fixtures and adversarial prompts. Check that denials, tool selection and data isolation remain correct, because a changed response can affect whether sensitive details are disclosed.

What should access-control test logs record?

Record enough to trace the decision, such as a test correlation identifier, authenticated principal, requested resource identifier, authorisation outcome and downstream service result. Avoid storing full account data or conversation text when redacted evidence can support diagnosis.

Does account access testing also prove that account answers are factually correct?

No. Access testing establishes whether the user may receive the information. Separate accuracy tests should compare authorised answers with trusted account data and check that the assistant represents values and dates correctly.