Dashboard variable to reference the username of the signed in user

Is it possible to use the username of the person signed in as a variable?
Goal: to execute a SQL query where the Grafana username is part of the select statement

This is a local copy of Grafana, not the cloud version.

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

  • What are you trying to achieve?

  • How are you trying to achieve it?

  • What happened?

  • What did you expect to happen?

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

You can use global username variable but since a user can change their username if they have Viewer permissions it renders this approach very fragile