Delegate role assignment permissions with WITH GRANT OPTION in Snowflake
Allow a role to grant other roles to third parties using WITH GRANT OPTION, decentralizing access management.
O que mudou
You can now include the WITH GRANT OPTION clause when granting an account role or database role to another role. This allows the recipient role to further grant that role to other roles in the hierarchy. ### Use cases Imagine you need to delegate data team management to a tech lead without granting SECURITYADMIN privileges across the entire account. With this feature, you can grant an operational role with the option to delegate it further. - Grant roles with permission to pass them on to other roles - Remove only the delegation option without revoking base access - Control the removal of dependent privileges using CASCADE or RESTRICT ### How to use sql GRANT ROLE analyst TO ROLE data_steward WITH GRANT OPTION; What happens in this code: 1. The command assigns the analyst role to the data_steward role. 2. The WITH GRANT OPTION clause allows data_steward to grant the analyst role to other roles. 3. The recipient role inherits permissions and gains autonomy to manage this assignment. sql REVOKE GRANT OPTION FOR ROLE analyst FROM ROLE data_steward RESTRICT; What happens in this code: 1. The command specifically removes the delegation permission from the data_steward role over the analyst role. 2. The data_steward role retains the analyst role and its privileges. 3. The RESTRICT option prevents removal if there are active sub-grants made by data_steward. ### Limitations and requirements - Valid only for role-to-role grants (including database roles). - Direct grants to users (TO USER) do not support this clause. - The executing role must own the granted role or possess the global MANAGE GRANTS privilege.
- snowflake
- rbac
- roles
- grants
- security
WITH GRANT OPTION for role grants
Resumo e explicação gerados por IA a partir da release note oficial. Em caso de dúvida, a documentação oficial da plataforma prevalece.
Relacionadas
- SnowflakeGA
Geração de documentos em PDF, Word e PowerPoint no Snowflake CoWork
O Snowflake CoWork agora gera arquivos PDF, Word, PowerPoint e HTML diretamente de suas análises usando a ferramenta de execução de código do Cortex Agent.
snowflake cowork · cortex agent - SnowflakePublic Preview
Cortex Agent SDK para Python e TypeScript no Snowflake
O Cortex Agent SDK permite criar aplicações que utilizam Cortex Agents e Cortex Code em Python e TypeScript.
cortex agents · python - SnowflakeAtualização
Mensagens de erro mais detalhadas na classificação de dados sensíveis
A view DATA_CLASSIFICATION_LATEST agora traz mensagens de erro específicas e códigos do Snowflake para falhas na classificação.
data governance · trust center