Hi,
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.
GET _xpack/security/_authenticate
{
"username": "domain\username",
"roles": [
"admins",
"superuser"
],
"full_name": null,
"email": null,
"metadata": {
"ldap_dn": "...,
"ldap_groups": [
...
},
"enabled": true
}
So my question is: Can I filter my report based on the authenticated user information?
Thank you.