How to get the loggedin user in kibana/xpack

Hi,

I have a json document like below indexed in ES:
{
"company" : "abc",
"users": ["john","smith","wills","jacob"]
}

In kibana while create the roles i am granting read privileges to specific document like below:
{"match": {"users": "john"}} - Here i need to pass logged in user name dynamically.

Can you please help me in getting the logged in user name. Thanks!

I don't quite follow what you're asking for, but I think you want Templated Role Queries.

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