# Using $\_\_user.login in Grafana variable query

**URL:** <https://community.grafana.com/t/using-user-login-in-grafana-variable-query/35911>\
**Category:** General\
**Tags:** postgres\
**Created:** [August 31, 2020, 2:01pm UTC](https://community.grafana.com/t/using-user-login-in-grafana-variable-query/35911 "2020-08-31T14:01:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepthiprasad19](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/deepthiprasad19/32/12586_2.png) [@deepthiprasad19](https://community.grafana.com/u/deepthiprasad19)\
**Post date:** [August 31, 2020, 2:01pm UTC](https://community.grafana.com/t/using-user-login-in-grafana-variable-query/35911/1 "2020-08-31T14:01:36Z")

</div>

Hi

I am using Grafana 7.1  
Using grafana built in variable while creating a user defined variable and it works fine when I set refresh never.

But it fails to load data when I set refresh ‘on dashboard load’. Gives error as shown in screenshot  
Please help.

 ![image](https://us1.discourse-cdn.com/grafana/original/2X/b/bee48d4fd789d867fcbab755051bc218de501d0f.png) ![error](https://us1.discourse-cdn.com/grafana/original/2X/d/d517bcf3aa7a6bc0665f8f13f1af0dbb409327ef.png)

---

<div class="post-metadata">

**Author:** ![samant](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/samant/32/5520_2.png) [@samant](https://community.grafana.com/u/samant)\
**Post date:** [October 4, 2020, 2:19pm UTC](https://community.grafana.com/t/using-user-login-in-grafana-variable-query/35911/2 "2020-10-04T14:19:34Z")

</div>

hi Deepthi

heard $\_\_user is officially supported in Grafana 7.2 did u try in that ?  
worked for me in 7.2

 ![image](https://us1.discourse-cdn.com/grafana/original/2X/8/892b5c104d2baee412dbfbf5942fcfac6637aa4b.png)  
Regards  
Samant

---

<div class="post-metadata">

**Author:** ![deepthiprasad19](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/deepthiprasad19/32/12586_2.png) [@deepthiprasad19](https://community.grafana.com/u/deepthiprasad19)\
**Post date:** [October 13, 2020, 11:12am UTC](https://community.grafana.com/t/using-user-login-in-grafana-variable-query/35911/3 "2020-10-13T11:12:53Z")

</div>

yes its working now in 7.2
