Skip to main content

grants_on

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

Overview

Namegrants_on
TypeResource
Idsnowflake.role.grants_on

Fields

NameDatatypeDescription
namestringThe name of the role
created_onstringDate and time when the grant was created
grant_optionstringIf true, allows the recipient role to grant the privileges to other roles.
granted_bystringThe role that granted this privilege to this grantee
granted_by_role_typestringType of the role that granted this privilege to this grantee
granted_onstringThe type of of the role
granted_tostringThe type of the grantee
grantee_namestringThe name of the grantee
privilegestringThe name of the privilege

Methods

NameAccessible byRequired ParamsDescription
list_grants_onSELECTname, endpointList all grants on the role

SELECT examples

List all grants on the role

SELECT
name,
created_on,
grant_option,
granted_by,
granted_by_role_type,
granted_on,
granted_to,
grantee_name,
privilege
FROM snowflake.role.grants_on
WHERE name = '{{ name }}'
AND endpoint = '{{ endpoint }}';