SVV_ROLES - Amazon Redshift
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

SVV_ROLES

使用 SVV_ROLES 查看用户有权访问的角色列表。

SVV_ROLES 对所有用户可见。超级用户可以查看所有行。具有 ACCESS SYSTEM TABLE 权限的普通用户可以看到所有行。普通用户只能看到其拥有访问权限的身份或他们是身份拥有者的身份。

表列

列名称 数据类型 描述
role_id integer 角色 ID。
role_name text 角色的名称。
role_owner text 角色拥有者的名称。
external_id text 角色在第三方身份提供商中的唯一标识符。

示例查询

以下示例将返回 SVV_ROLES 的输出。

SELECT role_name,role_owner FROM svv_roles WHERE role_name IN ('role1', 'role2'); role_name | role_owner -----------+------------ role1 | superuser role2 | superuser