How can I restrict the list of indexes in the “Discover” drop down list to only offer those that match the Index Patterns defined in the user’s role.
Currently even though the filter pattern restricts what indexes the user can perform a search on; it still shows them the entire list of indexes.
If a user then selects an index they do not have permissions for, the results box stays blank, which is fine; but a red error message is displayed at the top; which is a poor user experience!
I would really like to prevent restricted users from seeing and being able to select indexes they are not allowed to search for.
I’d appreciate any help on this; assuming it’s even possible.
Hello @boatmisser !
I had to do the same for my instance and the only way I found was to make specific Tenants.
Tenants are the only work around I found to make it.
Hope someone has another solution.
Good luck !
Hello @ThibaudF @boatmisser
Could you kindly let me know, how did you you restrict the user access to certain indices only.
Thanks a lot in advance
@schand This issue wasn’t related to the index access but to OpenSearch Dashboards’ index pattern.
Security roles don’t control that list.
Separate tenants would be the only solution that I could think of.
@pablo Thank you for the information
I shall look at the tenants part for achieving it
It depends on your ODFE/OpenSearch version.
But you can define roles and inside these roles, you can define index permissions by index patterns.
So you can restrict access to indices via index pattern permissions.
And these roles can be linked to tenants.
Everything is in the documentation