How to use term Run_As in kibana


(Iamazy) #1

Hello
Current Logined user is elastic, I want to query dsl run as another user named iamazy, How to write the dsl,
I try to run this dsl but got exception

POST test_index/_search
{
  "query": {
    "match_all": {}
  },
  "run_as":"iamazy"
}

Thanks


(Christian Dahlqvist) #2

I am not sure you can do that in Kibana. If you look atthe documentation it shows that this does not go into the query DSL, but rather is sent as HTTP headers, which I do not think you can control/change in Kibana.

Why do you want to do this?


(Iamazy) #3

Hello ,
I just try this dsl to verfied whether my role comes into effect,
I had known this dsl grammar was wrong and my problem had solved。
Thanks Christian


(system) closed #4

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