How to use term Run_As in kibana

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": {}


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?

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

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