Skip to main content

grants_of

Creates, updates, deletes, gets or lists a grants_of resource.

Overview

Namegrants_of
TypeResource
Idsnowflake.role.grants_of

Fields

NameDatatypeDescription
created_onstringDate and time when the grant was created
granted_bystringThe role that granted this role to this grantee
granted_tostringThe type of the grantee, can be USER or ROLE
grantee_namestringThe name of the grantee
rolestringThe name of the role

Methods

NameAccessible byRequired ParamsDescription
list_grants_ofSELECTname, endpointList all grants of the role

SELECT examples

List all grants of the role

SELECT
created_on,
granted_by,
granted_to,
grantee_name,
role
FROM snowflake.role.grants_of
WHERE name = '{{ name }}'
AND endpoint = '{{ endpoint }}';