USE ROLE

statementsupportedAccess control (grants, roles)

docs.snowflake.com ↗

Specifies the active/current primary role for the session. The currently active primary role sets the context that determines whether the current user has the necessary privileges to execute CREATE <object> statements or perform any other SQL action. Authorization to perform any SQL action other than creating objects can be provided by secondary roles. For more information, see Overview of Access Control.

Syntax

USE ROLE <name>

Parameters

NameRequiredDescription
nameSpecifies the identifier for the role to use for the session. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.

Usage notes

See also

Referenced by