snowflake.snowpark.functions.current_organization_name¶
- snowflake.snowpark.functions.current_organization_name() Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.39.1/src/snowflake/snowpark/_functions/scalar_functions.py#L96-L105)¶
Returns the name of the organization for the account where the current user is logged in.
Example
>>> # Return result is tied to session, so we only test if the result exists >>> result = session.create_dataframe([1]).select(current_organization_name()).collect() >>> assert result[0]['CURRENT_ORGANIZATION_NAME()'] is not None