On this page

    Categories: System

    SESSION_USER

    Returns the username of the user that created the current session. This function cannot be used in a reflection.

    Syntax

    SESSION_USER() → varchar

    Examples

    SESSION_USER example
    SELECT SESSION_USER
    -- testuser@dremio.com
    

    Usage Notes

    This function must be called without parentheses.