Inherited grants and container-level MANAGE GRANTS in Snowflake (GA)
Snowflake now offers inherited grants on containers and container-level MANAGE GRANTS, simplifying access management.
O que mudou
Inherited grants and container-level grant administration are now generally available. These features allow you to define privileges on current and future objects with a single command and delegate grant administration for specific databases or schemas without requiring account-wide access.
Use cases
Imagine you need to ensure an analyst role can read all current and future tables in a schema, without manually maintaining individual rules or future grants. With this feature, you define access once at the container level, and it propagates automatically.
- Grant uniform privileges across all current and future objects of a type in a container automatically.
- Delegate grant administration for a database or schema to a specific role.
- Reduce grant record proliferation and simplify role hierarchies.
How to use
Both features are opt-in and must be enabled at the account level. You can turn them on by running the account alteration command:
ALTER ACCOUNT SET FEATURE_RBAC_INHERITED_GRANTS = 'ENABLED';
What happens in this code:
- The account parameter
FEATURE_RBAC_INHERITED_GRANTSis set to enabled. - The command enables both inherited grants and container-level
MANAGE GRANTS.
To apply an inherited grant on all tables in a schema to a role:
GRANT INHERITED SELECT ON ALL TABLES
IN SCHEMA prod.analytics
TO ROLE analyst_role;
What happens in this code:
- The
INHERITEDkeyword specifies that the rule applies to both existing and future objects. - The
SELECTprivilege is granted for all tables within theprod.analyticsschema. - The
analyst_rolereceives immediate and automatic access to any new table created later in that schema.
Limitations and requirements
- Both features are opt-in and must be enabled per account.
- Requires
MANAGE GRANTSon the target container or a higher container. - Inherited grants on executable objects (such as procedures and functions) should be reviewed carefully, as they may allow executing code with the owner's privileges.
- rbac
- grants
- manage grants
- inherited grants
- security
Inherited grants and container-level MANAGE GRANTS (General availability)
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