# \[Bug?\] RLS NULL row ignored by query\_dataset API when user also has explicit permission rows — Dashboard works correctly

**URL:** <https://community.amazonquick.com/t/bug-rls-null-row-ignored-by-query-dataset-api-when-user-also-has-explicit-permission-rows-dashboard-works-correctly/52797>\
**Category:** Q&A\
**Tags:** qls-RlsCls, dataset, Business-Intelligence-Engineer\
**Created:** [June 18, 2026, 8:37am UTC](https://community.amazonquick.com/t/bug-rls-null-row-ignored-by-query-dataset-api-when-user-also-has-explicit-permission-rows-dashboard-works-correctly/52797 "2026-06-18T08:37:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chcccchiii](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/chcccchiii/32/35033_2.png) [@chcccchiii](https://community.amazonquick.com/u/chcccchiii)\
**Post date:** [June 18, 2026, 8:37am UTC](https://community.amazonquick.com/t/bug-rls-null-row-ignored-by-query-dataset-api-when-user-also-has-explicit-permission-rows-dashboard-works-correctly/52797/1 "2026-06-18T08:37:49Z")

</div>

**Environment:**

- QuickSight Enterprise Edition
- Region: us-east-1
- Direct-connect dataset with user-based RLS

**Issue:**  
When a user has **both explicit permission rows AND a NULL (all-access) row** in the same RLS permissions dataset, the behavior is inconsistent between Dashboard and API:

| Access Method | NULL Row Behavior | Result |
| --- | --- | --- |
| Dashboard (UI) | ✅ Recognized as full access | User sees all data |
| query\_dataset API (via Amazon Q / Quick Desktop) | ❌ Ignored | User only sees data matching explicit rows |

**RLS Configuration (simplified):**

username | rls\_territory | rls\_other\_cols

------------|----------------------------------|---------------

user\_a | TERRITORY-A, TERRITORY-B, … | NULL

user\_a | TERRITORY-C, TERRITORY-D, … | NULL

user\_a | TERRITORY-E, TERRITORY-F, … | NULL

user\_a | NULL | NULL ← should grant full access

Per [official documentation](https://docs.aws.amazon.com/quicksight/latest/user/restrict-access-to-a-data-set-using-row-level-security.html):

> “If you add a rule for a user or group and leave all other columns with no value (NULL), you grant them access to all the data.”

**Expected behavior:** The NULL row should grant full access regardless of other rows — both in Dashboard and API.

**Actual behavior:** Dashboard correctly interprets the NULL row. API (query\_dataset) only applies the explicit territory rows, ignoring the NULL row entirely.

**Reproducible:** Yes — confirmed with 2 different users who have the same RLS pattern. Both see full data in Dashboard but restricted data via API.

**Workaround:** Remove all explicit rows and keep only the NULL row — then both Dashboard and API work correctly. However, this workaround requires restructuring the RLS dataset, which may not always be feasible.

**Questions:**

1. Is this a known limitation of the query\_dataset API vs Dashboard rendering?
2. Is the expected behavior that NULL row + explicit rows should be evaluated as OR (union) — i.e., NULL wins?
3. Is there a best practice for granting full access to admin users who also need explicit rows for other systems that share the same RLS dataset?

Thanks for any guidance!

---

<div class="post-metadata">

**Author:** ![JacobR](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/jacobr/32/37779_2.png) [@JacobR](https://community.amazonquick.com/u/JacobR)\
**Post date:** [June 18, 2026, 3:12pm UTC](https://community.amazonquick.com/t/bug-rls-null-row-ignored-by-query-dataset-api-when-user-also-has-explicit-permission-rows-dashboard-works-correctly/52797/2 "2026-06-18T15:12:16Z")

</div>

Hi @chcccchiii ,

The Dashboard treats each permission row as a standalone rule and unions the results, so when it sees a row for `user_a` with all filter columns NULL, it correctly interprets that as “grant full access,” and that row wins. The `query_dataset` API appears to instead aggregate all filter values for a user across rows into a per-column IN-list. When it hits a NULL in `rls_territory`, it discards it as “no value” but it still applies the explicit territory values from your other rows. The grant-all semantics of that NULL row get lost in translation.

Based on my expereince and from reviewing some of the AWS documentation, the general rule says a row with a valid username and all-NULL filter columns grants full access. But the “Important” callout says QuickSight skips “empty rules” to prevent accidental over-exposure and the API seems to apply that logic more aggressively than the Dashboard does. By the strict definition your row isn’t an empty rule (the username is populated), so the Dashboard has it right and the API has it wrong.

To answer your questions directly:

1. Not a documented limitation as this looks like a bug. Worth filing with AWS Support with your reproducible test case.

2. Yes, the intended behavior is OR/union across rows, with the NULL row granting full access regardless of other rows.

3. The short-term workaround is to avoid mixing a NULL-filter row with explicit-filter rows for the same user, which is what triggers the inconsistency. The right long-term fix for admin users who need full access will depend on your specific setup

---

<div class="post-metadata">

**Author:** ![WLS-Luis](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/wls-luis/32/36723_2.png) [@WLS-Luis](https://community.amazonquick.com/u/WLS-Luis)\
**Post date:** [July 2, 2026, 6:49pm UTC](https://community.amazonquick.com/t/bug-rls-null-row-ignored-by-query-dataset-api-when-user-also-has-explicit-permission-rows-dashboard-works-correctly/52797/3 "2026-07-02T18:49:53Z")

</div>

Hi @chcccchiii,

Just checking back in since this thread hasn’t received a response in a while. Was Jacob’s reply helpful to you and/or were you able to find a solution yourself in the meantime? Please help the community by marking this answer as “Solution” or following up in general within the next 3 business days!

Thank you!

---

<div class="post-metadata">

**Author:** ![JacobR](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/jacobr/32/37779_2.png) [@JacobR](https://community.amazonquick.com/u/JacobR)\
**Post date:** [July 8, 2026, 3:37pm UTC](https://community.amazonquick.com/t/bug-rls-null-row-ignored-by-query-dataset-api-when-user-also-has-explicit-permission-rows-dashboard-works-correctly/52797/4 "2026-07-08T15:37:35Z")

</div>

Hi @chcccchiii,

Since I haven’t received any further updates from you, I’ll treat this inquiry as complete for now. If you have any additional questions, feel free to create a new post in the community and link this discussion for context.

Thank you
