Benchmarking Text-to-SQL under Role-Based Access Control
Given a database S and a natural language question Q , text-to-SQL systems aim to generate an SQL query that correctly answers Q when executed against S . Currently, popular text-to-SQL benchmarks mostly assume unrestricted access to S ; in practice, however, user access is often restricted, e.g.,…
- Year
- 2026
- Venue
- Proceedings of the ACM on Management of Data
- Published
- Sep 24, 2026
Paper
Y Fei, Yangfan Jiang, Yin Yang, Xiaokui Xiao
Given a database S and a natural language question Q , text-to-SQL systems aim to generate an SQL query that correctly answers Q when executed against S . Currently, popular text-to-SQL benchmarks mostly assume unrestricted access to S ; in practice, however, user access is often restricted, e.g., through role-based access control (RBAC) policies. This leads to a potential disconnect between benchmarking results and real-world performance: an LLM with high benchmark scores might perform poorly in an access-controlled environment, by frequently violating RBAC, or rejecting a query q that could be answered with only permitted data in S . Motivated by this, we present a comprehensive text-to-SQL benchmarking framework with realistic RBAC constraints, which features an LLM-assisted workflow that augments existing text-to-SQL benchmarks with plausible user roles and access policies. To do so, we formulate the problem of role synthesis as a structured reasoning process over the database schema, in which the LLM first infers the application context from the schema, and then derives role responsibilities and access scopes consistent with this context. This process is audited by human-in-the-loop quality control, in which domain experts perform metric-guided screening on the generated roles. Besides the augmented dataset, the proposed framework also contains evaluation metrics that identify RBAC-specific failure modes, and disentangle SQL utility from access-control compliance. We apply the proposed framework to several widely-used benchmarks, and conduct a systematic empirical study of state-of-the-art text-to-SQL systems. The results show that many solutions (especially open-weight LLMs) with high benchmarking scores under an unrestricted setting suffer sharp performance degradation once access constraints are in place, due to frequent RBAC violations.
Venue
- SIGMOD 2026May 31 – Jun 5, 2026 · Bengaluru, Indiaopenalexopenalex.orgNov 9, 2026
Sources · 3 distinct URLs back this page
Identifiers (2)
- doi: 10.1145/3837098
- openalex_id: W7171447714
Profile facts (2)
- pdf_url
- landing_url
Relationships (1)
- Published at: SIGMOD 2026
Metrics (1)
- openalex.org/W7171447714Nov 10, 2026cited_by
Activity (1)
- doi.org/10.1145/3837098Sep 24, 2026paper published: Benchmarking Text-to-SQL under Role-Based Access Control
Every connection lists its evidence: source kind, link and observation date. Dashed markers flag derived or low-confidence links.