IS_ORGANIZATION_USER_GROUP_IN_SESSION

functionsupportedAccounts, users, sessions, warehouses

docs.snowflake.com ↗

Context functions

Assuming a role was imported from an organization user group, verifies whether the role is in the user’s active primary or secondary role hierarchy for the session. The function returns FALSE if the specified role is not linked to an organization user group.

Syntax

IS_ORGANIZATION_USER_GROUP_IN_SESSION( '<string_literal>' )

Parameters

NameRequiredDescription
'string_literal'requiredThe name of an role.

Usage notes

See also