IS_GROUP_IMPORTED

functionsupportedAccounts, users, sessions, warehouses

docs.snowflake.com ↗

Context functions

Returns the VARCHAR value 'TRUE' if the specified group is an organization user group that was imported into the current account.

Syntax

SYS_CONTEXT(
  'SNOWFLAKE$ORGANIZATION' ,
  'IS_GROUP_IMPORTED' ,
  '<group_name>'
)

Parameters

NameRequiredDescription
'SNOWFLAKE$ORGANIZATION'requiredSpecifies that you want to call a function to return context information about the current organization.
'IS_GROUP_IMPORTED'requiredCalls the IS_GROUP_IMPORTED function.
'group_name'requiredSpecifies the name of the organization user group to check.

Returns

The function returns one of the following VARCHAR values: - 'TRUE' if the organization user group was imported into the current account. - 'FALSE' if the organization user group was not imported into the current account or is not a valid organization user group. To compare this return value against the BOOLEAN value TRUE or FALSE, cast the return value to BOOLEAN. For example: 2026_06 behavior change bundle When the 2026_06 behavior change bundle is enabled in your account, when you call this function through SYS_CONTEXT, it returns BOOLEAN instead of the VARCHAR string 'TRUE' or 'FALSE'. Existing casts, such as ::BOOLEAN or ::NUMBER, continue to work unchanged. For the return type of every property and function by namespace, see SYS_CONTEXT return types.

See also

Referenced by