# CURRENT\_SECURITY\_GROUPS

The `CURRENT_SECURITY_GROUPS` command returns a comma separated list of the current user's security groups on a SingleStore cluster.

## Syntax

```
SELECT CURRENT_SECURITY_GROUPS();
```

**Output**

| Column                      | Description                           |
| --------------------------- | ------------------------------------- |
| `CURRENT_SECURITY_GROUPS()` | List of a user's security group names |

## Example

```sql
SELECT CURRENT_SECURITY_GROUPS();

```

```output

+----------------------------------------+
| CURRENT_SECURITY_GROUPS()              |
+----------------------------------------+
| group_name_0,group_name_1,group_name_2 |
+----------------------------------------+
1 row in set (0.00 sec)
```

**Related Topic**

* [CURRENT\_SECURITY\_ROLES](https://docs.singlestore.com/db/v9.1/reference/sql-reference/security-management-commands/current-security-roles.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-groups/](https://docs.singlestore.com/db/v9.1/reference/sql-reference/security-management-commands/current-security-groups/)

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