Index Level Security (Index Permissions)

Hello I am new to search engines but I have a question about index permissions and I hope this is the right place to ask it.
Is there a way to search all indexes at once for which a user has permission?
Or the possibility that I search all indexes but only get the data from those that are stored in my role?



Role Test has access to index1
Indices in the system: index1, index2, index3
Without index level permission I would send the query to
/index1,index2,index3/_search. But this doesn’t work because index2 and index 3 report back a Forbidden 403.

Is there a way to solve this or do I have to request each index individually?




I suspect you have do_not_fail_on_forbidden set to false in config.yml. Set it to true instead.


Thank you, I have been struggling with this problem for a while.