CURRENT_ROLE_TYPE

functionsupportedAccess control (grants, roles)

docs.snowflake.com ↗

Context functions

Calling the CURRENT_ROLE_TYPE function returns ROLE if the current active (primary) role in the session is an account role. Calling the CURRENT_ROLE_TYPE function from a session running inside a Snowflake native application returns APPLICATION_INSTANCE.

Syntax

CURRENT_ROLE_TYPE()

Usage notes