CURRENT_ORGANIZATION_USER

functionsupportedAccounts, users, sessions, warehouses

docs.snowflake.com ↗

Context functions

Returns the name of the user currently logged into the system, but only if the user is an organization user.

Syntax

CURRENT_ORGANIZATION_USER()

Returns

If the current user is an organization user, returns a value of type VARCHAR. If the current user is not an organization user, returns NULL.

Usage notes