# Kibana 7.2.0 Index Patterns are visible to all users

**URL:** <https://discuss.elastic.co/t/kibana-7-2-0-index-patterns-are-visible-to-all-users/228323>\
**Category:** Kibana\
**Created:** [April 16, 2020, 1:16pm UTC](https://discuss.elastic.co/t/kibana-7-2-0-index-patterns-are-visible-to-all-users/228323 "2020-04-16T13:16:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piotr\_Kacperczyk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/piotr_kacperczyk/32/66440_2.png) [@Piotr\_Kacperczyk](https://discuss.elastic.co/u/Piotr_Kacperczyk)\
**Post date:** [April 16, 2020, 1:16pm UTC](https://discuss.elastic.co/t/kibana-7-2-0-index-patterns-are-visible-to-all-users/228323/1 "2020-04-16T13:16:40Z")

</div>

Hi,  
I have installed Kibana 7.2.0 with X-Pack. I created 2 indexes, e.g logging-a-16.04.2020, logging-b-16.04.2020 with index patterns logging-a\*, logging-b\*  
I created role 'a' which can access index pattern logging-a\* with following privileges  
monitor,read,create,write,create\_index,index,view\_index\_metadata

I created an user and assinged it roles a, kibana\_user. When I tried to log in with this user, the user can see the index pattern logging-b\* also, eventhough role a has no access to indexpattern logging-b\*. Not only that, user is also able to delete the indexpattern logging-b\* using Management tab of Kibana. Ofcourse user is not able to see any data from logging-b\* index, but he can delete it and when i tried to login in with the user who has access to logging-b\* index, i can see that, the index pattern was deleted.

I have an usecase where i need to create users based on index patters. I might probably have 20 index patterns and each index pattern will have some users. I dont want all these index patterns to be displayed for all users. Is it possible to do that?

Thanks in Advance.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [April 16, 2020, 1:25pm UTC](https://discuss.elastic.co/t/kibana-7-2-0-index-patterns-are-visible-to-all-users/228323/2 "2020-04-16T13:25:37Z")

</div>

It's possible to do this by using [spaces](https://www.elastic.co/guide/en/kibana/7.6/xpack-spaces.html).

The access rules you configured in the roles are just about the actual data in Elasticsearch, the "index pattern" in Kibana is just a saved object carrying some meta information.

To separate the users on Kibana level as well, create different spaces for the various user groups and assign them correctly. Then go into the spaces and create just the index pattern objects you need there.

---

<div class="post-metadata">

**Author:** ![Piotr\_Kacperczyk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/piotr_kacperczyk/32/66440_2.png) [@Piotr\_Kacperczyk](https://discuss.elastic.co/u/Piotr_Kacperczyk)\
**Post date:** [April 16, 2020, 1:33pm UTC](https://discuss.elastic.co/t/kibana-7-2-0-index-patterns-are-visible-to-all-users/228323/3 "2020-04-16T13:33:55Z")

</div>

> [@flash1293](#):
>
> It's possible to do this by using [spaces](https://www.elastic.co/guide/en/kibana/7.6/xpack-spaces.html).
> 
> The access rules you configured in the roles are just about the actual data in Elasticsearch, the "index pattern" in Kibana is just a saved object carrying some meta information.
> 
> To separate the users on Kibana level as well, create different spaces for the various user groups and assign them correctly. Then go into the spaces and create just the index pattern objects you need there.

Is it possible in Open distro for elasticsearch?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [April 16, 2020, 2:00pm UTC](https://discuss.elastic.co/t/kibana-7-2-0-index-patterns-are-visible-to-all-users/228323/4 "2020-04-16T14:00:19Z")

</div>

I don't think so, but for open distro questions it makes sense to ask that question in the dedicated open distro forum.

---

<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:** [May 14, 2020, 2:00pm UTC](https://discuss.elastic.co/t/kibana-7-2-0-index-patterns-are-visible-to-all-users/228323/5 "2020-05-14T14:00:27Z")

</div>

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