# Restrict user to specific Kibana index

**URL:** https://discuss.elastic.co/t/restrict-user-to-specific-kibana-index/238431
**Category:** Kibana
**Created:** [June 24, 2020, 10:07am UTC](https://discuss.elastic.co/t/restrict-user-to-specific-kibana-index/238431 "2020-06-24T10:07:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Anushka\_Thachil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anushka_thachil/32/63173_2.png) [@Anushka\_Thachil](https://discuss.elastic.co/u/Anushka_Thachil)
#### Post date: [June 24, 2020, 10:07am UTC](https://discuss.elastic.co/t/restrict-user-to-specific-kibana-index/238431/1 "2020-06-24T10:07:37Z")

</div>

I have created a user and assigned it a role to view logs of a single index. But the user is able to see all the index patterns created in Kibana (logs visible only for the allowed index). But I would like the user to see only the index he has been given access to and not the other index patterns in kibana. I am using Kibana 7.2.0 and have enabled XPACK security feature on my basic licence.  
I have read about creating different kibana instances and creating custom index instead of the default .kibana index. But I have multiple indexes and this will not be feasible to me. Is there any other workaround for this?  
Thankyou!

---

<div class="post-metadata">

### Author: ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)
#### Post date: [June 24, 2020, 4:46pm UTC](https://discuss.elastic.co/t/restrict-user-to-specific-kibana-index/238431/2 "2020-06-24T16:46:30Z")

</div>

Hello @Anushka_Thachil -

Index Patterns and indices are different entities. Restricting index access does not restrict index pattern access although using an index pattern won't allow access to indices the user doesn't have access to.

You might look at spaces if you want to hide the availability to index patters.

---

<div class="post-metadata">

### Author: ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)
#### Post date: [June 24, 2020, 6:06pm UTC](https://discuss.elastic.co/t/restrict-user-to-specific-kibana-index/238431/3 "2020-06-24T18:06:58Z")

</div>

you want to read up on what matthew said

Three step process

you first have to create a space

than create a role and assign space to it, in this process you can assign appropriate indice to this role.

than create a user and assign that role to this user.

---

<div class="post-metadata">

### Author: ![Anushka\_Thachil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anushka_thachil/32/63173_2.png) [@Anushka\_Thachil](https://discuss.elastic.co/u/Anushka_Thachil)
#### Post date: [June 25, 2020, 2:14pm UTC](https://discuss.elastic.co/t/restrict-user-to-specific-kibana-index/238431/4 "2020-06-25T14:14:40Z")

</div>

Yes Spaces does the job here! We were able to achieve partial multi-tenancy.  
Thankyou @mattkime and @elasticforme

---

<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: [July 23, 2020, 2:17pm UTC](https://discuss.elastic.co/t/restrict-user-to-specific-kibana-index/238431/5 "2020-07-23T14:17:03Z")

</div>

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