Grant Privileges to Role

snowflake.grant_role_privileges
ActionDatabases & warehousesconnection required

Calls the Snowflake REST / SQL API with the connection's bearer token.

Grant privileges on a securable to a role.

Connection

Required
Yes — the node will not save without one
Auth type
Bearer token
Providers
Snowflake
Secret shape
the token, or {"token": "…"}
Config it needs
account, warehouse, database, schema, role, token_type
Resolved by
config.connection_id, else node.connection_id

Configuration

2 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
name
Name of the role receiving the privileges, as snowflake.list_roles reports it — unquoted names match the upper-cased object.
stringYes———
body
Grant to apply: the securable, its type and the privileges.
objectYes——{"privileges":["USAGE"],"securable":{"database":"DB"},"securable_type":"DATABASE"}

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "body": {
    "privileges": [
      "USAGE"
    ],
    "securable": {
      "database": "DB"
    },
    "securable_type": "DATABASE"
  }
}

Output

One shape.

result

FieldTypeExample
status
string—
{
  "status": ""
}

See Grant Privileges to Role run in a workflow.

In a technical demo we add the Snowflake connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.