SVV_SYSTEM_PRIVILEGES - Amazon Redshift

SVV_SYSTEM_PRIVILEGES

SVV_SYSTEM_PRIVILEGES is visible to all users. Superusers can see all rows. Regular user who has the ACCESS SYSTEM TABLE permission can see all rows. Regular users can only see identities to which they have access or for which they are the identities owner.

Table columns

Column name Data type Description
system_privilege text The name of the system permission.
identity_id integer The ID of the identity. Possible values are user ID or role ID.
identity_name text The name of the identity.
identity_type text The type of the identity. Possible values are user or role.

Sample query

The following example displays the result for the specified parameters.

SELECT system_privilege,identity_name,identity_type FROM svv_system_privileges WHERE system_privilege = 'ALTER TABLE' AND identity_name = 'sys:superuser'; system_privilege | identity_name | identity_type ------------------+---------------+--------------- ALTER TABLE | sys:superuser | role