# Search multiple data streams and indices - Permissions

**URL:** <https://discuss.elastic.co/t/search-multiple-data-streams-and-indices-permissions/293678>\
**Category:** Elasticsearch\
**Created:** [January 6, 2022, 4:56pm UTC](https://discuss.elastic.co/t/search-multiple-data-streams-and-indices-permissions/293678 "2022-01-06T16:56:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlos.cilleruelo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos.cilleruelo/32/64927_2.png) [@carlos.cilleruelo](https://discuss.elastic.co/u/carlos.cilleruelo)\
**Post date:** [January 6, 2022, 4:56pm UTC](https://discuss.elastic.co/t/search-multiple-data-streams-and-indices-permissions/293678/1 "2022-01-06T16:56:25Z")

</div>

Hello,

I am trying to perform some searches over multiple data streams and indices using a -\* pattern. Everything seems to be working when I search over a specific index, but if a tried the wildcard my client prompts an error.

This works:  
`search = es.get(index='customIndex-12022', id=id, ignore=404)`

This give the following error:  
`search = es.get(index='customIndex-*', id=id, ignore=404)`

AuthorizationException(403, 'security\_exception', 'action [indices:data/read/get] is unauthorized for user [custom\_beats] with roles [custom-beats,ingest\_admin], this action is granted by the index privileges [read,all]')

Thanks in advance 😉

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 9, 2022, 11:11pm UTC](https://discuss.elastic.co/t/search-multiple-data-streams-and-indices-permissions/293678/2 "2022-01-09T23:11:43Z")

</div>

What permissions does that user have?

---

<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 6, 2022, 11:12pm UTC](https://discuss.elastic.co/t/search-multiple-data-streams-and-indices-permissions/293678/3 "2022-02-06T23:12:36Z")

</div>

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