Skip to main content
Version: current [25.x]

Categories: System

SYSTEM_USER

Returns the name of the current user. This function cannot be used in a reflection.

Syntax

SYSTEM_USER → varchar

Examples

SYSTEM_USER example for Dremio Software
SELECT SYSTEM_USER
-- user.name
SYSTEM_USER example for Dremio Cloud
SELECT SYSTEM_USER
-- user.name@example.com
SYSTEM_USER example for Dremio Cloud
SELECT "SYSTEM_USER"()
-- user.name@example.com

Usage Notes

This function is identical to the functions SESSION_USER and USER.