---
title: "__threadGroupName"
description: "JMeter __threadGroupName function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values."
url: https://docs.jmeter.ai/functions/threadgroupname/
lastUpdated: 2026-10-01
source: docs.jmeter.ai
---

# __threadGroupName

*Also documented in context in the [full Functions and Variables reference](/user-manual/functions/#__threadGroupName).*

The thread group name function simply returns the name of the thread group
being executed.

There are no arguments for this function.

Usage Example:

```bash
\${__threadGroupName}
```

> **Note**
> This function does not work in any Configuration elements (e.g. User Defined Variables) as these are run from a separate thread.
> Nor does it make sense to use it on the Test Plan.

## Related

- [Functions and Variables Guide](/topics/functions-and-variables/)
- [Regex Extractor Builder](/tools/regex-tester/)
- [Full Functions Reference](/user-manual/functions/)
- [Component Reference](/user-manual/component-reference/)
