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

Categories: System

SESSION_USER

Returns 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
-- user.name@example.com
SESSION_USER example
SELECT "SESSION_USER"()
-- user.name@example.com

Usage Notes

This function is identical to the functions SYSTEM_USER and USER.