> 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/s/sage-people.md).

# Sage People

Sage People is a cloud HR platform. OctoXLabs reads the employee records through the Sage People API and adds them to the user inventory.

## Use cases

* List employees that Sage People reports.

```
Adapters = sage-people
```

## Before you begin

### Network

| Source              | Destination             | Port | Protocol |
| ------------------- | ----------------------- | ---- | -------- |
| OctoXLabs connector | Your Sage People domain | 443  | HTTPS    |

### Required permissions

| Scope or role             | Permission | Needed for                                          |
| ------------------------- | ---------- | --------------------------------------------------- |
| Sage People Employees API | Read       | Employees (`/services/apexrest/spapi/v4/employees`) |

Create a dedicated API user with the appropriate permission sets. The account needs at least the Sage People Employees API permission.

## Create credentials in Sage People

{% stepper %}
{% step %}

### Create an API user

Create a dedicated API user in Sage People.
{% endstep %}

{% step %}

### Assign permission sets

Give the user the permission sets it needs. At least **Sage People Employees API** is required.
{% endstep %}

{% step %}

### Get the token

Not verified: the source does not say how the token is generated for this user.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type   | Default | Description                                      |
| --------- | -------- | ------ | ------- | ------------------------------------------------ |
| Domain    | Yes      | String | None    | Base domain of your Sage People instance.        |
| API Token | Yes      | String | None    | Bearer token of the API user. Stored as `token`. |

## Troubleshooting

| Error message | Cause                                                                                                                                      | Fix                                                                                                                          |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| Status Code:  | The API answered with a status other than the one the connector expects. The message also lists the URL, the method and the response body. | Read the status code and the response body in the message, then check the credentials, the permissions and the network path. |

## Change history

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