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

# Mimecast V1

Mimecast V1 is the legacy Mimecast API 1.0. OctoXLabs signs each request with your keys and lists the internal users of your Mimecast account. Aliases are skipped.

## Use cases

* List the internal users that Mimecast V1 reports.

```
Adapters = mimecast-v1
```

* Find Mimecast users in a given mail domain.

```
Adapters = mimecast-v1 AND Domain = example.com
```

## Before you begin

### Network

| Source              | Destination                                                | Port | Protocol |
| ------------------- | ---------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Regional Mimecast API host (default `eu-api.mimecast.com`) | 443  | HTTPS    |

### Required permissions

| Scope or role | Permission | Needed for                         |
| ------------- | ---------- | ---------------------------------- |
| Directories   | Internal   | Read (application role permission) |

The role assigned to the application needs at least this permission. Regional hosts: EU `eu-api.mimecast.com`, DE `de-api.mimecast.com`, US `us-api.mimecast.com`, USB `usb-api.mimecast.com`, CA `ca-api.mimecast.com`, ZA `za-api.mimecast.com`, AU `au-api.mimecast.com`, Offshore `je-api.mimecast.com`.

## Create credentials in Mimecast V1

{% stepper %}
{% step %}

### Create an API application

In the Mimecast Administration Console, register an API application. Copy the Application ID and Application Key.
{% endstep %}

{% step %}

### Get account keys

Generate the Access Key and Secret Key of an API-enabled Mimecast account in the Administration Console.
{% endstep %}

{% step %}

### Set the role permission

Give the role of the application at least Directories | Internal | Read.
{% endstep %}

{% step %}

### Pick the region host

Use the API host that matches your tenant region.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                           | Required | Type    | Default             | Description                                                               |
| ----------------------------------- | -------- | ------- | ------------------- | ------------------------------------------------------------------------- |
| Domain (`domain`)                   | No       | String  | eu-api.mimecast.com | Regional Mimecast API host.                                               |
| Access Key (`access_key`)           | Yes      | String  |                     | Access Key of an API-enabled account.                                     |
| Secret Key (`secret_key`)           | Yes      | String  |                     | Secret Key paired with the Access Key. It signs each request. Write-only. |
| Application ID (`application_id`)   | Yes      | String  |                     | Application ID of the registered API application.                         |
| Application Key (`application_key`) | Yes      | String  |                     | Application Key. It is part of the request signature. Write-only.         |
| Proxy (`proxy`)                     | No       | String  |                     | Proxy host and port, sent as an `http://` proxy URL.                      |
| Timeout (`timeout`)                 | No       | Integer | 30                  | Seconds to wait for API responses.                                        |

## Troubleshooting

| Error message            | Cause                                    | Fix                                                                                    |
| ------------------------ | ---------------------------------------- | -------------------------------------------------------------------------------------- |
| Mimecast API error:      | The response contained a `fail` entry.   | Read the message. Check the keys, the application ID and key, and the role permission. |
| Max retries exceeded for | The API kept returning 429 (rate limit). | Wait and run the discovery again.                                                      |

## Change history
