Currently only the user can be resolved dynamically:
_dls_: '{"term" : {"myfield" : "${user_name}"}}'
Currently i see no other way than creating 50 roles. Should be too hard to write a script which generates the appropriate yml for that.
If have an idea which could make this easier pls. do not hesitate to file a feature request.
> Am 31.07.2017 um 11:20 schrieb rohit chaudhary <
rohitcha...@gmail.com>:
>
> Hi,
>
> I have a dashboard, which contains data from different regions. So, if I want to filter out data for user specific to region then how to proceed:
>
> One way is to create roles for each region and in dls filter data by region. So, for 50 regions, I will have to make 50 roles.
>
>
> So, is there any other way I should proceed?
> Is it possible to dynamically filter data according to user region using dls or something else?
>
> Thanks in advance.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Search Guard Community Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
search-guard...@googlegroups.com.
> To post to this group, send email to
search...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/search-guard/2954fe63-bb52-4a7f-9bb4-ea361e4048da%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.