snowflake.snowpark.Session.use_secondary_roles¶
- Session.use_secondary_roles(roles: Optional[Literal['all', 'none']]) None[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.23.0/src/snowflake/snowpark/session.py#L3127-L3140)¶
- Specifies the active/current secondary roles for the session. The currently-active secondary roles set the context that determines whether the current user has the necessary privileges to perform SQL actions. - Parameters:
- roles – “all” or “none”. - Nonemeans “none”.
 - References: Snowflake command USE SECONDARY ROLES.