# Multiple Kibana users and limit access

**URL:** <https://discuss.elastic.co/t/multiple-kibana-users-and-limit-access/253141>\
**Category:** Kibana\
**Created:** [October 23, 2020, 1:46pm UTC](https://discuss.elastic.co/t/multiple-kibana-users-and-limit-access/253141 "2020-10-23T13:46:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [October 23, 2020, 1:46pm UTC](https://discuss.elastic.co/t/multiple-kibana-users-and-limit-access/253141/1 "2020-10-23T13:46:21Z")

</div>

Hello,

I have this scenario: I installed auditbeat in 2 machines and created 2 users in Kibana:  
User 1: can access only index that has the names: Audibeat-machine-1  
User 2: can access only index that has the names: Audibteat-machine-2

The problem is that the user 1 still can see that there is an index with the name "auditbeat-machine-2" even if he can't access the data inside.

Is there a solution to hide the name of the index for some users ?  
Thanks for your help

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [October 23, 2020, 6:05pm UTC](https://discuss.elastic.co/t/multiple-kibana-users-and-limit-access/253141/2 "2020-10-23T18:05:40Z")

</div>

@Larry_Gregory/ @jportner can shed more light on this.

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [October 26, 2020, 12:04pm UTC](https://discuss.elastic.co/t/multiple-kibana-users-and-limit-access/253141/3 "2020-10-26T12:04:11Z")

</div>

Hi @TheHunter1 & @rashmi:

It sounds like you're ultimately running into this long-standing enhancement request: [https://github.com/elastic/kibana/issues/23294](https://github.com/elastic/kibana/issues/23294)

As an alternative, you can create different spaces for each of your users. The index patterns you create in one space won't exist in the other space, so it's a great way to achieve the isolation you're looking for.

Links:

- [Spaces docs](https://www.elastic.co/guide/en/kibana/current/xpack-spaces.html)
- [Securing access to spaces](https://www.elastic.co/guide/en/kibana/current/xpack-kibana-role-management.html#adding_kibana_privileges)

---

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [October 26, 2020, 1:16pm UTC](https://discuss.elastic.co/t/multiple-kibana-users-and-limit-access/253141/4 "2020-10-26T13:16:51Z")

</div>

Thanks for your replies @rashmi & @Larry_Gregory

I will try your suggestions and keep you informed if it work for me

Thanks again 🙂

---

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [October 27, 2020, 1:47pm UTC](https://discuss.elastic.co/t/multiple-kibana-users-and-limit-access/253141/5 "2020-10-27T13:47:53Z")

</div>

Hello again,

I have tried to use spaces, and it's working perfectly and it hides the index as I wanted, but the problem is that I lost preconfigured dashboards.  
Is it a limitation using spaces, or I have made a mistake configuring it ?

The first machine has the configuration bellow :

```auto
setup.dashboards.enabled: true
setup.dashboards.index: "filebeat-7.9.2-machine1"
output.elasticsearch:
  hosts: ["https://10.10.13.135:9200"]
  index: "filebeat-7.9.2-machiine1"
setup.template.name: "filebeat"
setup.template.pattern: "filebeat-*"
setup.ilm.enabled: false

```

and the 2nd machine has the configuration below:

```auto
setup.dashboards.enabled: true
setup.dashboards.index: "filebeat-7.9.2-machine2"
output.elasticsearch:
  hosts: ["https://10.10.13.135:9200"]
  index: "filebeat-7.9.2-machiine2"
setup.template.name: "filebeat"
setup.template.pattern: "filebeat-*"
setup.ilm.enabled: false

```

When I run setup from the 2nd machine I loss dashboards of the 1st machine.  
(used `saved Objects` to **export dashboards** from the **default** space to the 2 spaces I created for eat machine)

Thanks for your help.

---

<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:** [November 24, 2020, 1:47pm UTC](https://discuss.elastic.co/t/multiple-kibana-users-and-limit-access/253141/6 "2020-11-24T13:47:53Z")

</div>

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