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

SESSION_USER

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.