> 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/_getusers.md).

# \_getUsers

Gets the IDs of Users from a Department

### Parameters

#### departmentId

The ID of the chosen Department

```
FM_api(
    'Department_getUsers',[
        'departmentId' => '337119'
    ]
);
```

### Results

#### On Success

```
{"users":"92447,92731"}
```

#### On Failure

If there is no set value for 'departmentId'

```
{"error":"missing parameter: departmentId"}
```
