Sending user information from Grafana to elasticsearch

I have my Grafana with two different users, UserA and UserB. And then an elasticsearch as datasource.
Is there a way to send user information back to the elasticsearch, such as; UserA is accessing the elasticsearch.
In my elasticsearch, I have two different data. One that only UserA should be able to access and one that only UserB should be able to access.

So, is there a way to send who is the user, back to elasticsearch. And then in my elasticsearch, I can determine what this user should be able to access.
Thanks!