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

# USER

> The USER function retrieves information about the current signed-in user or their manager. Use the level parameter to specify which level to return.

The **USER** function retrieves information about the current signed-in user or their manager.

## Format

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

## Attribute Description

| **Attribute** | **Required** | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ------------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| level         | No           | Number type. Determines whether the formula returns information about the current signed-in user or their manager.<br />• If this parameter is omitted or set to `0`, the function returns the name and userId of the current signed-in user.<br />• If this parameter is set to a value other than `0`, the function returns information about the signed-in user's manager. Set to `1` for the first-level manager, or `2` for the second-level manager. |

## Return Value

| **Return type** | **Description**                                                                                                                     |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| array           | The returned user information.<br />When retrieving manager information, returns empty if no manager exists at the specified level. |

## Example

Use the `USER()` function to retrieve information about the current signed-in user and their manager.
