Skip to main content

SHOW ROLES

Lists all the roles assigned to the current user.

Syntax

SHOW ROLES

Output

The command returns the results in a table with these columns:

ColumnDescription
nameThe role name.
inherited_rolesNumber of roles inherited by the current role.
is_currentIndicates whether the role is currently active.
is_defaultIndicates whether the role is the default role of the user.

Examples

SHOW ROLES;

┌───────────────────────────────────────────────────────┐
│ name │ inherited_roles │ is_current │ is_default │
├───────────┼─────────────────┼────────────┼────────────┤
│ developer │ 0falsefalse
public0falsefalse
│ writer │ 0truetrue
└───────────────────────────────────────────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today