snowflake.snowpark.Session.get_current_role¶
- Session.get_current_role() Optional[str] [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.18.0/src/snowflake/snowpark/session.py#L2835-L2839)¶
Returns the name of the primary role in use for the current session.