# How can we restrict to show data on kibana from different users?

**URL:** <https://discuss.elastic.co/t/how-can-we-restrict-to-show-data-on-kibana-from-different-users/291214>\
**Category:** Kibana\
**Created:** [December 8, 2021, 11:42am UTC](https://discuss.elastic.co/t/how-can-we-restrict-to-show-data-on-kibana-from-different-users/291214 "2021-12-08T11:42:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sajesh\_sb](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@sajesh\_sb](https://discuss.elastic.co/u/sajesh_sb)\
**Post date:** [December 8, 2021, 11:42am UTC](https://discuss.elastic.co/t/how-can-we-restrict-to-show-data-on-kibana-from-different-users/291214/1 "2021-12-08T11:42:46Z")

</div>

There are two dashboards created which are having independent data. I need to create three users - Admin, user-1, and user-2. Admin can see both the dashboards, user-1 should be able to see dashboard-1 and user-2 should be able to see dashboard-2. How can we achieve this?

I am using Elasticsearch free version 7.14.1.

I hope someone would have achieved this already. Any suggestion on the above will be highly appreciated.

Regards  
Sajesh

---

<div class="post-metadata">

**Author:** ![FALEN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/falen/32/82754_2.png) [@FALEN](https://discuss.elastic.co/u/FALEN)\
**Post date:** [December 8, 2021, 12:19pm UTC](https://discuss.elastic.co/t/how-can-we-restrict-to-show-data-on-kibana-from-different-users/291214/2 "2021-12-08T12:19:41Z")

</div>

Hi @sajesh_sb ,

You can use kibana Spaces function

> **[Spaces | Kibana Guide \[master\] | Elastic](https://www.elastic.co/guide/en/kibana/master/xpack-spaces.html)**

---

<div class="post-metadata">

**Author:** ![Dmitrii\_Shevchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitrii_shevchenko/32/98541_2.png) [@Dmitrii\_Shevchenko](https://discuss.elastic.co/u/Dmitrii_Shevchenko)\
**Post date:** [December 8, 2021, 12:20pm UTC](https://discuss.elastic.co/t/how-can-we-restrict-to-show-data-on-kibana-from-different-users/291214/3 "2021-12-08T12:20:13Z")

</div>

Hey @sajesh_sb 👋

You could achieve that using [Kibana spaces](https://www.elastic.co/guide/en/kibana/current/xpack-spaces.html):

- Create two kibana spaces
- Set up dashboards in each space (you can import them from the default space)
- Create two user roles, and set up [privileges](https://www.elastic.co/guide/en/kibana/current/kibana-role-management.html#adding_kibana_privileges) for each to access only one of the spaces

---

<div class="post-metadata">

**Author:** ![sajesh\_sb](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@sajesh\_sb](https://discuss.elastic.co/u/sajesh_sb)\
**Post date:** [December 8, 2021, 1:14pm UTC](https://discuss.elastic.co/t/how-can-we-restrict-to-show-data-on-kibana-from-different-users/291214/4 "2021-12-08T13:14:38Z")

</div>

Thanks, @FALEN, and @Dmitrii_Shevchenko for the response.

I will go through it and will get back to you.

---

<div class="post-metadata">

**Author:** ![austinsonger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/austinsonger/32/78994_2.png) [@austinsonger](https://discuss.elastic.co/u/austinsonger)\
**Post date:** [December 8, 2021, 10:25pm UTC](https://discuss.elastic.co/t/how-can-we-restrict-to-show-data-on-kibana-from-different-users/291214/5 "2021-12-08T22:25:41Z")

</div>

Related Issue.

> [@Multiple Different Clients](https://discuss.elastic.co/t/multiple-different-clients/258935/4):
>
> Hi all, I think it is not needed to change each detection rule for each tentant to the tenant-specific index patterns. I played some around with the multi-tenancy options. I discovered that when you create a rule with a user which has only access to specific tentant indexes it queries (signals) only on those indeces. So: Create a Kibana Space for the tenant, let say 'companyA' Create a user with a role which has: o Cluster privileges: manage o Index privileges: indeces: \*companyA\*, privil…

---

<div class="post-metadata">

**Author:** ![sajesh\_sb](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@sajesh\_sb](https://discuss.elastic.co/u/sajesh_sb)\
**Post date:** [December 9, 2021, 11:19am UTC](https://discuss.elastic.co/t/how-can-we-restrict-to-show-data-on-kibana-from-different-users/291214/6 "2021-12-09T11:19:52Z")

</div>

Hi @All, I have a few concerns.

1. If we have created spaces and roles, is there a chance that it is visible to everyone? All the data are confidential and user-1 should not be able to see the data from space-2.

2. Is it possible on the free version of Elasticsearch?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 6, 2022, 11:20am UTC](https://discuss.elastic.co/t/how-can-we-restrict-to-show-data-on-kibana-from-different-users/291214/7 "2022-01-06T11:20:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
