A business account may contain many users, and each user may be allowed to see several records. Checking only the record identifier misses the account boundary. The query must include the tenant established by the server session.
A tenant name in the URL is a request to inspect data, not permission to inspect it.
Scope the source rows first. Then apply the requested identifier, role or teammate filter inside that scope. Preserve an empty result when the tenant has no matching rows. A missing tenant must fail closed instead of becoming a wildcard. The hidden dataset changes row order and record contents so a positional selection can't stand in for the query. The store is isolated in memory; a production implementation should carry the same tenant condition into its database queries and every write operation.
Apply the session tenant before filtering or returning records.