# Row Level Security for Enterprise edition

**URL:** <https://community.grafana.com/t/row-level-security-for-enterprise-edition/18224>\
**Category:** Authentication\
**Tags:** datasource, permissions\
**Created:** [June 11, 2019, 6:01pm UTC](https://community.grafana.com/t/row-level-security-for-enterprise-edition/18224 "2019-06-11T18:01:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kvantakala](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@kvantakala](https://community.grafana.com/u/kvantakala)\
**Post date:** [June 11, 2019, 6:01pm UTC](https://community.grafana.com/t/row-level-security-for-enterprise-edition/18224/1 "2019-06-11T18:01:00Z")

</div>

Hey I’m evaluating the Enterprise version at the moment.

I could not find any documentation on Row Level Security. It does state that “Datasource/Table Permissions is only available in Grafana Enterprise”.

This is great but my use case needs the ability to have Row Level Security. I.E. have different filters options available to different users on the same dashboard.

Is this a feature that is available in Grafana Enterprise?

Thanks,

---

<div class="post-metadata">

**Author:** ![inad9300](https://avatars.discourse-cdn.com/v4/letter/i/b782af/32.png) [@inad9300](https://community.grafana.com/u/inad9300)\
**Post date:** [August 4, 2022, 8:55am UTC](https://community.grafana.com/t/row-level-security-for-enterprise-edition/18224/2 "2022-08-04T08:55:19Z")

</div>

I’m also interested in this question.

---

<div class="post-metadata">

**Author:** ![usman.ahmad](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/usman.ahmad/32/29706_2.png) [@usman.ahmad](https://community.grafana.com/u/usman.ahmad)\
**Post date:** [August 4, 2022, 12:18pm UTC](https://community.grafana.com/t/row-level-security-for-enterprise-edition/18224/3 "2022-08-04T12:18:41Z")

</div>

Hi @inad9300 and @kvantakala,

Welcome to the :grafana: community forum !!

I do not understand the part where you wrote that;

> [@kvantakala](#):
>
> I.E. have different filters options available to different users on the same dashboard.

So, we do have data source permissions that also allow specifying which particular data sources each user is allowed to access.

Here is the link to the documentation:

> **[Data source management | Grafana documentation](https://grafana.com/docs/grafana/latest/administration/data-source-management/)**
>
> Data source management information for Grafana administrators

But, if you want to restrict data source queries depending on who is looking at a dashboard, then we do not currently have support for this feature.

Does it answer your question?

---

<div class="post-metadata">

**Author:** ![inad9300](https://avatars.discourse-cdn.com/v4/letter/i/b782af/32.png) [@inad9300](https://community.grafana.com/u/inad9300)\
**Post date:** [August 4, 2022, 3:18pm UTC](https://community.grafana.com/t/row-level-security-for-enterprise-edition/18224/4 "2022-08-04T15:18:34Z")

</div>

To me, that indeed answers the question. It is rather unfortunate, though. Row-level access control is present in pretty much every non-trivial web application. The data in those rows tends to be dynamic and abundant, making the definition of different Grafana data sources unfeasible. It would seem like a super basic need to me, but oh well, at least now I know.

I was hoping to achieve that through a custom data source using the SimpleJson plugin, but I’ve just learned it is no longer maintained. Unfortunately, I can’t think of any other option at the moment.

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [August 4, 2022, 3:26pm UTC](https://community.grafana.com/t/row-level-security-for-enterprise-edition/18224/5 "2022-08-04T15:26:06Z")

</div>

this thread might help.

> [@Limit users to access Variable values](https://community.grafana.com/t/limit-users-to-access-variable-values/8513/13):
>
> It looks like that variable does exist based on the above here is an example with sample ddl & dml use grafana --this is my own ms sql server database --for testing things out not grafana's db go drop table companies create table companies(companyid int identity(1,1), companyname varchar(50) ) insert into companies select 'Acme' union select 'Zimza' drop table users; create table users(username varchar(50)) insert into users select 'ddenson' drop table usercompanies create table …

based on principle of [Access-control list - Wikipedia](https://en.wikipedia.org/wiki/Access-control_list)
