SESSION_USER
Returns the name of the user associated with the current session. This is the user who initiated the current database connection.
Note
Do not use trailing parentheses when calling SESSION_USER.
Syntax
session_user
Return Type
Returns a CHAR or VARCHAR string.
Example
The following example returns the current session user:
select session_user; session_user -------------- dwuser (1 row)