Information Schema ENABLED_ROLES Table
The Information Schema ENABLED_ROLES table lists all roles that are currently enabled for the current session, including nested roles.
Column
Description
Examples
SELECT * FROM information_schema.ENABLED_ROLES;
+-----------+
| ROLE_NAME |
+-----------+
| NULL |
+-----------+
SET ROLE staff;
SELECT * FROM information_schema.ENABLED_ROLES;
+-----------+
| ROLE_NAME |
+-----------+
| staff |
+-----------+Last updated
Was this helpful?

