Named workload identity management for users in Snowflake
Use SQL to register, modify, and remove multiple named workload identities for service users in Snowflake.
O que mudou
Snowflake now allows managing workload identities (Workload Identity Federation) directly via SQL commands for service users, moving beyond the limitation of a single default identity. Each user can have up to 10 identities with individual names and provider settings.
Use cases
Imagine you need to authenticate multiple services and applications to Snowflake using cloud identity providers without managing long-lived passwords or keys.
- Register new workload identities tied to specific providers.
- Modify parameters like comments or disable existing identities.
- List configured authentication methods.
How to use
Add a new workload identity to an existing service user using dedicated SQL commands.
ALTER USER my_service_user ADD WORKLOAD IDENTITY aws_identity (
TYPE = AWS,
ARN = 'arn:aws:iam::123456789012:role/MyAWSRole'
);
What happens in this code:
- The
ALTER USERcommand targets the specified service user. - The
ADD WORKLOAD IDENTITYclause sets the unique name for the new identity (aws_identity). - Provider-specific parameters configure the integration via AWS IAM.
Modify an existing identity to update configurations or add a comment:
ALTER USER my_service_user MODIFY WORKLOAD IDENTITY aws_identity SET COMMENT = 'Updated for testing';
What happens in this code:
- The command points to the already existing named identity on the user.
- The
SET COMMENTparameter applies a new description for auditing and tracking.
Limitations and requirements
- Each user can have up to 10 workload identities by default.
- Properties like
TYPE,ARN,ISSUER,SUBJECT, orOIDC_AUDIENCE_LISTcannot be changed directly after creation; to change them, you must remove the identity and add it again. - Named commands cannot manage the
DEFAULTidentity created by the legacyWORKLOAD_IDENTITYproperty. - Requires
OWNERSHIPorMODIFY PROGRAMMATIC AUTHENTICATION METHODSprivilege on the service user.
- workload identity
- authentication
- security
- sql
- users
Named workload identity management for users
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