SHOW PRIVILEGES¶
列出授予应用程序的权限。
语法¶
SHOW PRIVILEGES IN APPLICATION <name>
参数¶
name指定应用程序的名称。
输出¶
指定授予应用程序的权限。
列 |
描述 |
|---|---|
权限 |
清单文件中指定的权限的名称。 |
描述 |
清单文件中指定的权限的描述。有关详细信息,请参阅 访问控制权限。 |
is_granted |
指定使用者是否已授予权限。 |
is_grantable |
指定运行命令的用户是否具有可授予此权限的 已激活角色 |
使用说明¶
该命令不需要正在运行的仓库即可执行。
该命令仅返回当前用户的当前角色已获授至少一项访问权限的对象。
MANAGE GRANTS 访问权限隐式允许其持有者查看账户中的每个对象。默认情况下,只有账户管理员(具有 ACCOUNTADMIN 角色的用户)和安全管理员(具有 SECURITYADMIN 角色的用户)才具有 MANAGE GRANTS 权限。
To post-process the output of this command, you can use the pipe operator (
->>) or the RESULT_SCAN function. Both constructs treat the output as a result set that you can query.The output column names for this command are generated in lowercase. If you consume a result set from this command with the pipe operator or the RESULT_SCAN function, use double-quoted identifiers for the column names in the query to ensure that they match the column names in the output that was scanned. For example, if the name of an output column is
type, then specify"type"for the identifier.