ReferenceSQL ReferenceSQL FunctionsfunctionsQUERY_USERVersion: 24.1.xOn 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() → varcharExamplesQUERY_USER exampleSELECT QUERY_USER()-- testuser@dremio.com