snowflake.snowpark.Session.get_current_user

Session.get_current_user() Optional[str][source]

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