revokeRole

Last updated: January 27, 2026

Revokes a role from a user or from another role in Snowflake. Used to remove role assignments from users or to remove roles from role hierarchies.

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 revoke

Yes

fromUser

String

Name of the user to revoke the role from*

No

fromRole

String

Name of the role to revoke the role from*

No

* Exactly one of fromUser or fromRole must be specified

loading

loading

loading

loading