Skip to main content

⭐ Repository β†’ πŸ“ Compliance Engine β†’ πŸ“ CloudAware β†’ πŸ“ Snowflake β†’ πŸ“ User

πŸ›‘οΈ Snowflake User Default Role is not set🟒

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 RulesPoliciesFlagsCompliance
πŸ’Ό Cloudaware Framework β†’ πŸ’Ό User Account Management17no data