# CURRENT\_SECURITY\_ROLES

The `CURRENT_SECURITY_ROLES` command returns a comma separated list in one row of the current user's security roles on a SingleStore cluster.

## Syntax

```
SELECT CURRENT_SECURITY_ROLES();
```

**Output**

| Column                     | Description                          |
| -------------------------- | ------------------------------------ |
| `CURRENT_SECURITY_ROLES()` | List of a user's security role names |

## Example

```sql
SELECT CURRENT_SECURITY_ROLES();

```

```output

+-------------------------------------+
| CURRENT_SECURITY_ROLES()            |
+-------------------------------------+
| role_name_0,role_name_1,role_name_2 |
+-------------------------------------+
1 row in set (0.00 sec)

```

**Related Topic**

* [CURRENT\_SECURITY\_GROUPS](https://docs.singlestore.com/db/v9.1/reference/sql-reference/security-management-commands/current-security-groups.md)
* [SECURITY\_LISTS\_INTERSECT](https://docs.singlestore.com/db/v9.1/reference/sql-reference/security-management-commands/security-lists-intersect.md)
* [Row-Level Security (RLS) Deployment Guide](https://docs.singlestore.com/db/v9.1/security/administration/row-level-security-rls-deployment-guide.md)

***

Modified at: June 11, 2026

Source: [/db/v9.1/reference/sql-reference/security-management-commands/current-security-roles/](https://docs.singlestore.com/db/v9.1/reference/sql-reference/security-management-commands/current-security-roles/)

(An index of the documentation is available at /llms.txt)
