snowflake.snowpark.Session.use_role

Session.use_role(role: str) None[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.29.0/snowpark-python/src/snowflake/snowpark/session.py#L3833-L3839)

Specifies the active/current primary role for the session.

Parameters:

role – the role name.

Language: English