You are viewing documentation about an older version (1.3.0). View latest version

snowflake.snowpark.Session.use_secondary_roles

Session.use_secondary_roles(roles: Literal['all', 'none'] | None) None[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/session.py#L1754-L1767)

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.

语言: 中文