alterRoleComment

Last updated: January 27, 2026

Sets or removes the comment on an existing role in Snowflake.

Note: This change type does not support automatic rollback or database inspection features (snapshot, diff, diff-changelog, and generate-changelog commands).

Available attributes

Attribute

Type

Description

Required

roleName

String

Name of the role to alter

Yes

ifExists

Boolean

Only alter if the role exists using IF EXISTS

No

newComment

String

New comment text to set*

No

unsetComment

Boolean

Remove the existing comment*

No

* Exactly one of newComment or unsetComment must be specified

loading

loading

loading

loading