<!-- dev-portal
method: POST
title: Users
path: /v3/users/search
-->


### POST /v3/users/search

API to retrieve all users for an account, which can be filtered by role.

#### Request Parameters

| Name    | Type    | Required | Description                                                         |
|---------|---------|----------|---------------------------------------------------------------------|
| page    | string  | No       | The index of the page to return.  This starts at and defaults to 1. |
| size    | integer | No       | Page size.  If null, default is 100.  Maximum is 500.               |

#### Request Body

| Name     | Type        | Required | Description                                                                          |
|----------|-------------|----------|--------------------------------------------------------------------------------------|
| segments | array[UUID] | No       | List of segments to filter by.                                                       |
| role     | enum        | No       | User role to filter by. See [UserRole](../Schemas#userroleenum) for possible values. |
| userIds  | array[UUID] | No       | List of user IDs to filter by.                                                       |


#### Response

| Name          | Type                                | Description                                                    |
|---------------|-------------------------------------|----------------------------------------------------------------|
| content       | Array[[User](../Schemas#user)]      | List of users.  See User schema for more details.              |
| page          | [OffsetPage](../Schemas#offsetpage) | Object detailing the page information for the current request. |


##### Response Codes

| Name | Description                                                                                                               |
|------|---------------------------------------------------------------------------------------------------------------------------|
| 200  | Ok.                                                                                                                       |

#### Example

```bash
curl -X POST \
  -H "Authorization: Bearer ${AUTH_TOKEN}" \
  -H "Content-Type: application/json" \
  "https://${HOST}/vehicle-status-api/v3/users/search" \
  -d '{
    "segments": [],
    "role": "DRIVER",
    "userIds": ["3fa85f64-5717-4562-b3fc-2c963f66afa6"]
  }'
```
Response:
```Json
{
  "content": [
	{
	  "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", 
      "employeeId": "sally_smith",
	  "email": "sally.smith@email.com",
	  "firstName": "Sally",
	  "lastName": "Smith",
	  "countryCode": "USA",
	  "applicationNames": [
	    "fordTelematics",
	    "in_cab_coaching",
	    "administrativeConsole",
	    "developer_portal"
	  ]
	}
  ],
  "page": {
    "number": 1,
    "size": 100,
    "totalElements": 1,
    "totalPages": 1
  }
}
```
