sql-referencesql-functionsfunctionsQUERY_USERVersion: 0.0.1On this pageQUERY_USERCategories: SystemQUERY_USERReturns the username of the user that is currently logged in to the system. This function cannot be used in a reflection.SyntaxQUERY_USER() → varcharExamples{{< codeheader "QUERY_USER example" >}}SELECT QUERY_USER()-- testuser@dremio.com