# Give User access to execute particular query

**URL:** <https://discuss.elastic.co/t/give-user-access-to-execute-particular-query/295742>\
**Category:** Kibana\
**Created:** [January 29, 2022, 7:13am UTC](https://discuss.elastic.co/t/give-user-access-to-execute-particular-query/295742 "2022-01-29T07:13:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adityadgr8](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Adityadgr8](https://discuss.elastic.co/u/Adityadgr8)\
**Post date:** [January 29, 2022, 7:13am UTC](https://discuss.elastic.co/t/give-user-access-to-execute-particular-query/295742/1 "2022-01-29T07:13:55Z")

</div>

Index Name : sampleindex@timestamp  
Everyday new index is being created with current date

I made one user in kibana and assigned a particular role to the user:  
I already added sampleindex\* with privilages:

```auto
 monitor, index, read, view_index_metadata

```

to the role assigned to my user but still my user is not able to execute:

```auto
GET /_cat/indices/sampleindex*

```

my question is, how to give my user access to execute this particular query.

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [January 29, 2022, 12:03pm UTC](https://discuss.elastic.co/t/give-user-access-to-execute-particular-query/295742/2 "2022-01-29T12:03:28Z")

</div>

Have you set cluster privileges too?

cat indices API Document says user need also `monitor` or `manage` cluster priviledge and `monitor` or `manage` index priviledge.

> **[cat indices API | Elasticsearch Guide \[7.16\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html#cat-indices-api-prereqs)**

---

<div class="post-metadata">

**Author:** ![Adityadgr8](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Adityadgr8](https://discuss.elastic.co/u/Adityadgr8)\
**Post date:** [January 31, 2022, 8:35am UTC](https://discuss.elastic.co/t/give-user-access-to-execute-particular-query/295742/3 "2022-01-31T08:35:30Z")

</div>

Thanks @Tomo_M, Giving "monitor" cluster privilage to the user worked...

---

<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:** [February 28, 2022, 8:36am UTC](https://discuss.elastic.co/t/give-user-access-to-execute-particular-query/295742/4 "2022-02-28T08:36:19Z")

</div>

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