You are viewing documentation about an older version (1.16.0). View latest version

snowflake.snowpark.Session.get_current_user

Session.get_current_user() Optional[str][source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/session.py#L2659-L2664)

Returns the name of the user in the connection to Snowflake attached to this session.

Language: English