I created an index that ingests files information from our Windows File Server, and I want to share a report with our users. The challenge of sharing this report is to make sure user can see only the files they own or have read/write permission. My index contains a field called username that includes the domain name like this: %domain%%username%.
Also I know that I can retrieve the authenticated user information using the x-Pack Authenticate API.
So my question is: Can I filter my report based on the authenticated user information?