Skip to main content

SHOW ROLES

Description​

The SHOW ROLES statement is used to display all created role information, including role name, included users and permissions.

Syntax​

SHOW ROLES

Return Value​

ColumnDataTypeNote
NamestringRole Name
CommentstringComment
UsersstringIncluded Users
GlobalPrivsstringGlobal Privileges
CatalogPrivsstringCatalog Privileges
DatabasePrivsstringDatabase Privileges
TablePrivsstringTable Privileges
ResourcePrivsstringResource Privileges
WorkloadGroupPrivsstringWorkload Group Privileges

Access Control Requirements​

The user executing this SQL command must have at least the following privileges:

PrivilegeObjectNotes
GRANT_PRIVUSER or ROLEThis operation can only be performed by users or roles with GRANT_PRIV permissions

Example​

  • View created roles
SHOW ROLES