Global Variable $__user

  • What Grafana version and what operating system are you using?


  • What are you trying to achieve?

I am trying to use the global user variable to get the logged in user using ${__user.login} but the value of the variable is not populated

I used

SELECT '${__user.login}' as test

and get this as the resulting table:


I tried other global variables like

SELECT '$__timezone' as test

and these work fine.

There are no obvious error message when using $__user.