# RLS - 999 rules-per-user limit - Workaround or solution to resolve this?

**URL:** <https://community.amazonquick.com/t/rls-999-rules-per-user-limit-workaround-or-solution-to-resolve-this/40485>\
**Category:** Q&A\
**Tags:** error, Business-Intelligence-Engineer, quick-sight\
**Created:** [January 2, 2025, 2:59am UTC](https://community.amazonquick.com/t/rls-999-rules-per-user-limit-workaround-or-solution-to-resolve-this/40485 "2025-01-02T02:59:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![QuickSightRokie](https://avatars.discourse-cdn.com/v4/letter/q/90db22/32.png) [@QuickSightRokie](https://community.amazonquick.com/u/QuickSightRokie)\
**Post date:** [January 2, 2025, 2:59am UTC](https://community.amazonquick.com/t/rls-999-rules-per-user-limit-workaround-or-solution-to-resolve-this/40485/1 "2025-01-02T02:59:20Z")

</div>

Hi Team,

What are the currently available workarounds or solutions for the RLS 999 rules-per-user limit? I came across a link suggesting that tag-based RLS resolved this issue. Are there any other solutions to address this limitation?

> [@RLS and 999 rules-per-user limit](https://community.amazonquick.com/t/rls-and-999-rules-per-user-limit/38037/5):
>
> Alas I cannot remove the first rule because that would break authz for all the other users in that group that do not have per-building permissions. The rules were, at some point, additive: first the GroupName rule would apply, then if there was another rule specific to the UserName it would also be applied. They were AND’d together. Somehow that has stopped working. Instead I just finished switching over to tag-based RLS and that is working much better, and has the added benefit of allowing us…

Thank you!

---

<div class="post-metadata">

**Author:** ![Xclipse](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xclipse/32/20455_2.png) [@Xclipse](https://community.amazonquick.com/u/Xclipse)\
**Post date:** [January 2, 2025, 10:21am UTC](https://community.amazonquick.com/t/rls-999-rules-per-user-limit-workaround-or-solution-to-resolve-this/40485/2 "2025-01-02T10:21:05Z")

</div>

Hi @Quick SightRokie

To manage scenarios when row-level security (RLS) limit is exceeded,

> **[Using row-level security with user-based rules to restrict access to a dataset...](https://docs.aws.amazon.com/quicksight/latest/user/restrict-access-to-a-data-set-using-row-level-security.html)**
>
> Restrict access to an existing dataset by using row-level security (RLS) with rules based on username or group in Amazon QuickSight.

[Consolidate Rules Using Comma-Separated Values](https://community.amazonquick.com/t/row-level-security-rules-in-amazon-quicksight) - Combine multiple access permissions into a single rule by listing values as comma-separated entries within a field. This approach reduces the total number of rules per user.

[Implement Group-Based Access Controls](https://community.amazonquick.com/t/rls-limitations/36742) - Organize users into groups based on their access requirements and define RLS rules at the group level. This method decreases the number of individual rules per user. Ensure that group assignments align with the desired data access patterns.

[Utilize Tag-Based RLS for Anonymous Users](https://docs.aws.amazon.com/quicksight/latest/user/quicksight-dev-rls-tags.html) - For embedded dashboards accessed by anonymous users, apply tag-based RLS to control data visibility. This technique involves assigning tags to dataset columns and specifying tag values at runtime, thereby managing access without exceeding the rule limit.

By adopting these strategies, you can effectively manage and mitigate the constraints imposed by the 999 RLS rules-per-user limit.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![QuickSightRokie](https://avatars.discourse-cdn.com/v4/letter/q/90db22/32.png) [@QuickSightRokie](https://community.amazonquick.com/u/QuickSightRokie)\
**Post date:** [January 2, 2025, 5:18pm UTC](https://community.amazonquick.com/t/rls-999-rules-per-user-limit-workaround-or-solution-to-resolve-this/40485/3 "2025-01-02T17:18:01Z")

</div>

Thank you so much, Xclipse!
