> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# SHOW ROLES

> SHOW ROLES displays all roles in the system.

SHOW ROLES displays all roles in the system. You can use `SHOW GRANTS FOR ROLE <role_name>;` to view the privileges of a specific role. For more information, see [SHOW GRANTS](/documents/4.2/sql-reference/sql-statements/account-management/SHOW_GRANTS.md).

This command is supported from v3.0.

***

***

**Tip**

Only users with the `user_admin` role has the privilege to perform this operation.

## Syntax

```SQL theme={null}
SHOW ROLES
```

Return fields:

| **Field** | **Description** |
| - | - |
| Name | The name of the role. |

## Examples

Display all roles in the system.

```SQL theme={null}
mysql> SHOW ROLES;
+---------------+
| Name          |
+---------------+
| root          |
| db_admin      |
| cluster_admin |
| user_admin    |
| public        |
| testrole      |
+---------------+
```

## References

* [CREATE ROLE](/documents/4.2/sql-reference/sql-statements/account-management/CREATE_ROLE.md)
* [ALTER USER](/documents/4.2/sql-reference/sql-statements/account-management/ALTER_USER.md)
* [DROP ROLE](/documents/4.2/sql-reference/sql-statements/account-management/DROP_ROLE.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.