snowflake.snowpark.Session.use_secondary_rolesΒΆ
- Session.use_secondary_roles(roles: Optional[Literal['all', 'none']]) None [source]ΒΆ
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β.
None
means βnoneβ.
References: Snowflake command USE SECONDARY ROLES.