> ## 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.

# DIRECTOR

> The DIRECTOR function returns the userId of the current signed-in user's manager. It works across multiple YiDA scenarios, including Form and workflow design. Use the level parameter to retrieve managers at different levels.

The **DIRECTOR** function returns the userId of the current signed-in user's manager.

## Supported Scenarios

The DIRECTOR function is supported in the following YiDA scenarios.

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

## Syntax

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

## Attributes

| **Attribute** | **Required** | **Description**                                                                                                                                                 |
| ------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| level         | Yes          | Number type. Specifies the manager level whose userId is returned.<br />Enter `1` to return the first-level manager, or `2` to return the second-level manager. |

## Return Value

| **Return type** | **Description**                                            |
| --------------- | ---------------------------------------------------------- |
| Text            | The manager information of the current signed-in employee. |

## Example

Use the `DIRECTOR()` function to return the userId of the current signed-in user's first-level manager.
