I would need to access an external service in order to obtain a list of Elasticsearch roles / privileges a user is restricted to have when performing requests to Elasticsearch. After that, that user will be authorized to see only specific data on Elasticsearch (so I think it will be authenticated with those specific roles / privileges), according to the list taken from the external service.
This way I can implement an authorization mechanism so that, for instance, if user wants to retrieve all cars but is allowed to see only american ones, the result will be filtered according to this restriction.
Is it possible to do that with your product?
Thanks a lot!