# QQ- Row level security on user level

**URL:** <https://community.amazonquick.com/t/qq-row-level-security-on-user-level/40422>\
**Category:** Q&A\
**Tags:** error, developer, quick-sight\
**Created:** [December 27, 2024, 2:46pm UTC](https://community.amazonquick.com/t/qq-row-level-security-on-user-level/40422 "2024-12-27T14:46:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bskr](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@bskr](https://community.amazonquick.com/u/bskr)\
**Post date:** [December 27, 2024, 2:46pm UTC](https://community.amazonquick.com/t/qq-row-level-security-on-user-level/40422/1 "2024-12-27T14:46:49Z")

</div>

I’m trying to create a row level security on user level. I had created a primary SPICE dataset with username & market columns, And created another SPICE dataset with username & market columns. However when i try to add second dataset as row level security it doesn’t work.

My question is -

–can we use SPICE dataset as Row level security dataset ??  
–Can the owner of the dataset will have access to the published dashboard post creating the row level security ??  
–Also please let me know the issue on the above one ??

---

<div class="post-metadata">

**Author:** ![Giridhar.Prabhu](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/giridhar.prabhu/32/27789_2.png) [@Giridhar.Prabhu](https://community.amazonquick.com/u/Giridhar.Prabhu)\
**Post date:** [December 27, 2024, 3:14pm UTC](https://community.amazonquick.com/t/qq-row-level-security-on-user-level/40422/2 "2024-12-27T15:14:34Z")

</div>

Hi @bskr

It appears the issue is related to how you have named the columns. The UserName and GroupName are like keywords. So you need to name them accordingly.

Please change your column name in the RLS dataset to have UserName. Per say your primary dataset does not require user name, it should have the column(s) on which the RLS works which I guess is the market column. In the RLS dataset you specify which user has access to which market (comma separated).

![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/7/e/7eefc615879eff3c014ae8b8c7f09ab37ac8dff5.png)

Regards,  
Giri

---

<div class="post-metadata">

**Author:** ![Biswajit\_1993](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/biswajit_1993/32/20472_2.png) [@Biswajit\_1993](https://community.amazonquick.com/u/Biswajit_1993)\
**Post date:** [January 6, 2025, 11:16am UTC](https://community.amazonquick.com/t/qq-row-level-security-on-user-level/40422/3 "2025-01-06T11:16:49Z")

</div>

Hi @bskr ,

Can you check the article below by @abacon, where he explains in detail the concepts of Join and RLS

> [@QuickSight Dataset Joins: Explained](https://community.amazonquick.com/t/quicksight-dataset-joins-explained/32202):
>
> In Amazon QuickSight you can create a (child) dataset by joining existing (parent) datasets together. When [joining datasets](https://docs.aws.amazon.com/quicksight/latest/user/joining-data.html#join-dataset-types) in this way, there are some key concepts to be aware of: A dataset is considered same-source when it doesn’t have any joins, or when all of the following conditions are met: If any of the logical tables refer to a QuickSight data source: All of the logical tables in this dataset must refer to the same QuickSight data source. If any of the logical tables refer to a Q…

Thanks & Regards  
Biswajit Dash
