role_privileges

Description

Exposes all privilege grants for roles in the organization. Use this table to audit what privileges each role holds, on which resources, and who granted them. Only privilege rows for roles the current role has USAGE privileges on are returned.

Syntax

SELECT * FROM deltastream.sys."role_privileges";

Columns

Column
Type
Nullable
Description

role_name

VARCHAR

No

Name of the role that holds this privilege.

role_priv_type

VARCHAR

No

Type of privilege, e.g. usage, create_compute_pool, select, insert.

role_priv_target

VARCHAR

No

Resource type the privilege is on, e.g. organization, compute_pool, relation.

role_priv_target_name

VARCHAR

No

Name of the specific resource the privilege is granted on.

grant_option

BOOLEAN

No

Whether the role can grant this privilege to other roles.

grantor_role

VARCHAR

No

Name of the role that granted this privilege.

granted_at

TIMESTAMP_LTZ

No

Timestamp when the privilege was granted.

organization_id

VARCHAR

No

The unique identifier of the organization this resource belongs to.

Examples

List all role privileges:

Find all privileges for a specific role:

See Also

Last updated