grants_of
Creates, updates, deletes, gets or lists a grants_of
resource.
Overview
Name | grants_of |
Type | Resource |
Id | snowflake.role.grants_of |
Fields
The following fields are returned by SELECT
queries:
- list_grants_of
successful
Name | Datatype | Description |
---|---|---|
grantee_name | string | The name of the grantee |
created_on | string (date-time) | Date and time when the grant was created |
granted_by | string | The role that granted this role to this grantee |
granted_to | string | The type of the grantee, can be USER or ROLE |
role | string | The name of the role |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list_grants_of | select | name , endpoint | showLimit | List all grants of the role |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
endpoint | string | Organization and Account Name (default: orgid-acctid) |
name | string | Identifier (i.e. name) for the resource. |
showLimit | integer | Query parameter to limit the maximum number of rows returned by a command. |
SELECT
examples
- list_grants_of
List all grants of the role
SELECT
grantee_name,
created_on,
granted_by,
granted_to,
role
FROM snowflake.role.grants_of
WHERE name = '{{ name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND showLimit = '{{ showLimit }}';