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

# BambooHR

BambooHR is an HR platform. OctoXLabs reads the BambooHR user accounts, both enabled and disabled, and adds them as users.

## Use cases

* Find BambooHR accounts that have no match in your directory.

```
Adapters = bamboohr AND NOT Adapters = active-directory
```

* Check what one BambooHR connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                                               | Port | Protocol |
| ------------------- | --------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Your BambooHR account, for example mycompany.bamboohr.com | 443  | HTTPS    |

### Required permissions

| Scope or role | Permission | Needed for                                          |
| ------------- | ---------- | --------------------------------------------------- |
| Admin user    | Read       | Users (email addresses are returned only to admins) |

Create the API key with an **admin** user. BambooHR returns email addresses only to admins, and users without an email address are skipped, so a non-admin key collects no users. The key has the same permissions as the user who created it. If the user cannot list users, the connection test fails with a 403 error.

## Create credentials in BambooHR

{% stepper %}
{% step %}

### Sign in as an admin

Sign in to BambooHR with an admin user.
{% endstep %}

{% step %}

### Open API Keys

Click your name in the lower left-hand corner of any page and select **API Keys**.
{% endstep %}

{% step %}

### Create the key

Create a key and copy it.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
If an unknown API key is used repeatedly, BambooHR disables API access for a while and answers every request with 403 Forbidden. Check the key before you run the connection test again.
{% endhint %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                                                                                 |
| --------- | -------- | ------- | ------- | ------------------------------------------------------------------------------------------- |
| Domain    | Yes      | String  | None    | Address of your BambooHR account, without `https://`, for example `mycompany.bamboohr.com`. |
| API Key   | Yes      | String  | None    | API key. Sent as the Basic authentication user name.                                        |
| Proxy     | No       | String  | None    | Proxy address in `host:port` form.                                                          |
| Timeout   | No       | Integer | 30      | Time in seconds to wait for API responses.                                                  |

## Troubleshooting

| Error message                                                          | Cause                                                                  | Fix                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Max retries exceeded for                                               | BambooHR answered 429 or 503 five times in a row.                      | Wait and try again later.                                                                                                                     |
| Status Code: `, followed by the URL, the method and the response body` | The API answered with a status other than the one the adapter expects. | Read the code and body. 401 or 403 usually points to wrong credentials or missing permissions. Check the address, port and Is Secure setting. |

## Change history

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