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

# Monofor

Monofor MonoSync is an identity data synchronization product. OctoXLabs reads the objects of one MonoSync Object Type and adds them to the user inventory.

## Use cases

* List the users read from MonoSync.

```
Adapters = monofor
```

## Before you begin

### Network

| Source              | Destination                                           | Port | Protocol |
| ------------------- | ----------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | MonoSync server, for example `monosync.company.local` | 443  | HTTPS    |

### Required permissions

| Scope or role                           | Permission | Needed for                    |
| --------------------------------------- | ---------- | ----------------------------- |
| API key that can search the Object Type | Read       | The Object Type you configure |

The frontend instructions say to request the key from your IDM or IAM team. The exact permission is not stated.

## Create credentials in Monofor

{% stepper %}
{% step %}

### Request an API key

Ask your IDM or IAM team for a MonoSync API key.
{% endstep %}

{% step %}

### Find the Object Type name

In the MonoSync console, open Object Types and copy the name of the Object Type to read, for example `monosyncUsers`.
{% endstep %}

{% step %}

### Find the primary field

Note the exact field name that identifies a user, for example `EMAIL`. Prefer the field that holds the email address, because users are matched with other identity sources by this value.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                                 | Required | Type    | Default | Description                                                                                               |
| ----------------------------------------- | -------- | ------- | ------- | --------------------------------------------------------------------------------------------------------- |
| Domain (`domain`)                         | Yes      | String  |         | Host name of the MonoSync server. Requests use HTTPS.                                                     |
| Api Key (`api_key`)                       | Yes      | String  |         | MonoSync API key, sent as the `Api-Key` header.                                                           |
| Object Type Name (`object_type_name`)     | Yes      | String  |         | Object Type to read, for example `monosyncUsers`.                                                         |
| User Primary Field (`user_primary_field`) | Yes      | String  |         | Field in the object that identifies a user. Objects where it is empty are skipped and counted in the log. |
| Timeout (`timeout`)                       | No       | Integer | 30      | Seconds to wait for API responses.                                                                        |

## Troubleshooting

| Error message              | Cause                                       | Fix                                                                                 |
| -------------------------- | ------------------------------------------- | ----------------------------------------------------------------------------------- |
| objects skipped: is empty. | The primary field is empty in some objects. | Check the User Primary Field value and the data in MonoSync. This is a log warning. |
| Max retries exceeded for   | The API kept returning 429 (rate limit).    | Wait and run the discovery again.                                                   |

## Change history

{% hint style="info" %}
Available starting from version 6.8.1.
{% endhint %}
