> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/department/_setusers.md).

# \_setUsers

Sets Users to a Department.

### Parameters

#### id

The ID of the Department.

#### vals

The User ID of the user to be set to the Department.

### Example

```
FM_api('Department_setUsers', ['id' => '3', 'vals' => '82878'])
```

### Result

#### On Success

```
{'ok':1}
```
