IS_GRANTED_TO_INVOKER_ROLE

functionsupportedAccess control (grants, roles)

docs.snowflake.com ↗

Context functions

Returns TRUE if the role returned by the INVOKER_ROLE function inherits the privileges of the specified role in the argument based on the context in which the function is called. The INVOKER_ROLE function only identifies and returns the account role of the object executing a SQL statement. Database roles are not supported.

Syntax

IS_GRANTED_TO_INVOKER_ROLE( '<string_literal>' )

Parameters

NameRequiredDescription
'string_literal'requiredThe name of the role.

Usage notes

Example

Call the function directly: Specify the function in the masking policy body: