# Give privilege to a user to create index pattern

**URL:** <https://discuss.elastic.co/t/give-privilege-to-a-user-to-create-index-pattern/256143>\
**Category:** Kibana\
**Created:** [November 20, 2020, 3:30pm UTC](https://discuss.elastic.co/t/give-privilege-to-a-user-to-create-index-pattern/256143 "2020-11-20T15:30:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angelos](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Angelos](https://discuss.elastic.co/u/Angelos)\
**Post date:** [November 20, 2020, 3:30pm UTC](https://discuss.elastic.co/t/give-privilege-to-a-user-to-create-index-pattern/256143/1 "2020-11-20T15:30:23Z")

</div>

Hello,

How can I give privilege to a user to create index patterns but not having the right to create indices?  
When I use "manage" privilege then the user has access everywhere.

Thank you in advance!

/Angelos

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [November 23, 2020, 10:03am UTC](https://discuss.elastic.co/t/give-privilege-to-a-user-to-create-index-pattern/256143/2 "2020-11-23T10:03:12Z")

</div>

Hey @Angelos,

I believe just giving `read` and `view_index_metadata` ES permissions + Kibana's own `all` for `Index Pattern Management` should be enough, see gif with the example:

 ![Peek 2020-11-23 11-01](https://us1.discourse-cdn.com/elastic/original/3X/0/2/02aea277e7914bc8bd894b202f789bee0c335a06.gif)

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![Angelos](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Angelos](https://discuss.elastic.co/u/Angelos)\
**Post date:** [November 23, 2020, 10:44am UTC](https://discuss.elastic.co/t/give-privilege-to-a-user-to-create-index-pattern/256143/3 "2020-11-23T10:44:04Z")

</div>

Hey @azasypkin,

Thank you! `view_metadata_index` did the trick.

In the documentation it is not very clear...

```auto
 view_index_metadata	

Read-only access to index and data stream metadata (aliases, aliases exists, get index, get data stream, exists, field mappings, mappings, search shards, type exists, validate, warmers, settings, ilm). This privilege is available for use primarily by Kibana users. 

```

/Angelos

---

<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:** [December 21, 2020, 10:44am UTC](https://discuss.elastic.co/t/give-privilege-to-a-user-to-create-index-pattern/256143/4 "2020-12-21T10:44:13Z")

</div>

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