snowflake.snowpark.functions.current_organization_user

snowflake.snowpark.functions.current_organization_user() Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.40.0/src/snowflake/snowpark/_functions/scalar_functions.py#L109-L118)

Returns the name of the organization user currently logged into the system.

Example

>>> result = session.create_dataframe([1]).select(current_organization_user().alias('RESULT')).collect()
>>> assert result[0]['RESULT'] == None
Copy
Language: English