CURRENT_SECONDARY_ROLES

functionsupportedAccess control (grants, roles)

docs.snowflake.com ↗

Context functions

Returns the secondary roles in use for the current session. To activate a different set of secondary roles for the session, execute the USE SECONDARY ROLES command.

Syntax

CURRENT_SECONDARY_ROLES()

Returns

Returns a string (VARCHAR) that is a JSON-encoded object containing the following name/value pairs:

Usage notes

Referenced by