IS_USER_IMPORTED
functionsupportedAccounts, users, sessions, warehousesReturns the VARCHAR value 'TRUE' if the specified user is an organization user that was imported into the current account.
Syntax
SYS_CONTEXT(
'SNOWFLAKE$ORGANIZATION' ,
'IS_USER_IMPORTED' ,
'<user_name>'
)
Parameters
| Name | Required | Description |
|---|---|---|
'SNOWFLAKE$ORGANIZATION' | required | Specifies that you want to call a function to return context information about the current organization. |
'IS_USER_IMPORTED' | required | Calls the IS_USER_IMPORTED function. |
'user_name' | required | Specifies the name of the user to check. |
Returns
The function returns one of the following VARCHAR values: - 'TRUE' if the user is an organization user that was imported into the current account. - 'FALSE' if the user is not an organization user, was not imported into the current account, or is not a valid user. 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
- SYS_CONTEXT (SNOWFLAKE$ORGANIZATION namespace) ↗
- IS_GROUP_ACTIVATED (SYS_CONTEXT function)
- IS_GROUP_IMPORTED (SYS_CONTEXT function)