CURRENT_ROLE

functionsupportedAccess control (grants, roles)

docs.snowflake.com ↗

Context functions

Returns the name of the primary role in use for the current session when the primary role is an account-level role or NULL if the role in use for the current session is a database role. To specify a different role for the session, execute the USE ROLE command.

Syntax

CURRENT_ROLE()

Usage notes

Referenced by