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

# EMPLOYEE

> The EMPLOYEE function returns a list of employee information based on an array of userIds. It supports Form scenarios in YiDA. By providing an array of employee userIds as input, the function returns the corresponding list of user information. The example shows how to combine it with other functions such as UNIONSET() to get employee information from multiple member components.

The **EMPLOYEE** function returns a list of employee information based on an array of userIds.

## Supported Scenarios

The EMPLOYEE function supports the following YiDA scenarios.

* Form (main form fields)

## Syntax

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

## Attributes

| **Attribute** | **Required** | **Description**               |
| ------------- | ------------ | ----------------------------- |
| array         | Yes          | An array of employee userIds. |

## Return Value

| **Return value type** | **Description**                             |
| --------------------- | ------------------------------------------- |
| array                 | The corresponding list of user information. |

## Example

* Get employee information using the userId from a member component.

Use the `EMPLOYEE()` and `UNIONSET()` functions to get the employee information list from multiple member components.
