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

# GETUSERNAME

> The GETUSERNAME function returns the name of the currently signed-in user within the current organization. Available in YiDA Form and workflow design.

The **GETUSERNAME** function returns the name of the currently signed-in user within the current organization.

## Supported Scenarios

The GETUSERNAME function is supported in the following YiDA scenarios:

* Form (main table fields)
* Form (business association rules)
* Form (validation)
* Workflow design (validation rules)
* Workflow design (associated actions)

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
GETUSERNAME()
```

## Return Value

| **Return type** | **Description**                                                           |
| --------------- | ------------------------------------------------------------------------- |
| Text            | The name of the currently signed-in user within the current organization. |

## Example

Use the `GETUSERNAME()` function to retrieve the name of the currently signed-in user, as shown below.
