snowflake.snowpark.Session.get_current_role

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

Returns the name of the primary role in use for the current session.