DESCRIBE ROLES¶
You may use the DESCRIBE ROLES
command to list all roles defined in your system. Since BLUE roles refer to both users and their assigned privileges, you will receive a list of users along with the associated name, privileges, and login if exists.
Note
DESCRIBE
commands use CPU to increase usability.
Syntax¶
DESC[RIBE] ROLES [LIKE 'pattern']
Parameters¶
Parameter |
Parameter Value |
Description |
---|---|---|
|
String pattern to match |
Output¶
Parameter |
Data Type |
Description |
---|---|---|
|
|
The ID of a specific role |
|
|
The name of a specific role |
|
|
Identifies whether or not a role has |
|
|
Identifies whether or not a role is a |
|
|
Validates whether or not role has login privileges. Enabled for actual users |
Examples¶
Executing DESCRIBE ROLES
¶
DESCRIBE ROLES;
id|name |superuser|clusteradmin|login|
--+---------+---------+------------+-----+
0 |public |0 |0 |0 |
1 |sqream |1 |0 |1 |
2 |new_role1|0 |1 |1 |
3 |new_role2|0 |0 |1 |
Executing DESCRIBE ROLES LIKE
¶
DESCRIBE ROLES LIKE 'ne%';
id|name |superuser|clusteradmin|login|
--+---------+---------+------------+-----+
2 |new_role1|0 |1 |1 |
3 |new_role2|0 |0 |1 |
Permissions¶
This command requires SUPERUSER
permission.