Use loggedin user info in queries

Is it possible to read the logged-in user info (Grafana), like the team he belongs to, in queries?
Preferably, we want to use existing plugins and do not want to create our own.
thx in advance

Maybe this meets some of your requirements: Global variables | Grafana Labs. Doesn’t include team though.