Skip to main content

πŸ“ Snowflake User Default Role is not set 🟒

  • Contextual name: πŸ“ Default Role is not set 🟒
  • ID: /ce/ca/snowflake/user/default-role-is-not-set
  • Located in: πŸ“ Snowflake User

Flags​

Our Metadata​

  • Policy Type: COMPLIANCE_POLICY
  • Policy Category:
    • SECURITY

Logic​

Description​

Open File

Description​

Ensure that each Snowflake user account has a designated Default Role configured.

Rational​

Assigning a Default Role to users reinforces the principle of least privilege by clearly defining the initial set of permissions available upon login. This practice:

  • Provides predictable and controlled access at session start.
  • Supports standardized access management and auditing across the organization.

Audit​

This policy marks a Snowflake User as INCOMPLIANT if Default Role Name field is empty.

Remediation​

Open File

Remediation​

Using SQL​

The executing role must hold the OWNERSHIP privilege on the target user account to modify its properties via SQL.

To assign a default role to a Snowflake user, execute the following SQL command:

ALTER USER {{username}} 
SET DEFAULT_ROLE = {{role_name}};

Note: The specified {{role_name}} must already exist in Snowflake.

policy.yaml​

Open File

Linked Framework Sections​

SectionSub SectionsInternal RulesPoliciesFlags
πŸ’Ό Cloudaware Framework β†’ πŸ’Ό User Account Management16