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
└───────────────────────────────────────────────────────┘
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today