> For the complete documentation index, see [llms.txt](https://docs.docontrol.io/docontrol-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docontrol.io/docontrol-user-guide/integrations/hris/bamboohr.md).

# BambooHR

BambooHR provides human resources software as a service to over 25,000 organizations. It automates common HR tasks, such as hiring, onboarding, preparing compensation, building culture, payroll monitoring, and time tracking.

After setting up the integration, DoControl captures data from employee records to calculate specific groups that can be leveraged in workflows. These [groups](/docontrol-user-guide/saas-data-monitoring/inventory/settings-groups.md#default-hr-groups) include:

* About-to-leave employees
* Current employee personal emails
* Former employee personal emails
* Former employee work emails

## Use cases

Integrate BambooHR with DoControl to make smarter decisions and reduce security risk in the following ways:

* **Get full inventory visibility** - View all BambooHR users, departments and [HR groups](/docontrol-user-guide/saas-data-monitoring/inventory/settings-groups.md#default-hr-groups), including terminated and about-to-leave employees. In a single glance, view your organizational posture to see: how many Google assets are accessible by former employees? How many employees share with their personal emails?
* **Trigger alerts** - Get real-time notifications when anomalous behavior occurs, such as when an about-to-leave employee performs a burst download of files and sends them to his personal email account. To see all DoControl alert types that leverage HR metadata from BambooHR, go to **Help > DoControl Alert Specifications**:
  * Possible former employee accessed assets (DC30)
  * File download by about-to-leave employee (DC33)
  * Possible former employee publicly shared (DC34)
  * Possible former employee externally shared (DC35)
  * Burst download by about-to-leave employee (DC36)<br>
* **Remediate future data exposure** - Define security workflows to handle a specific department in your organization, and prevent about-to-leave employees from downloading or externally sharing documents.
* **Get user metadata** - You can run a query to get user metadata for specific events. For example, if an employee in your organization changes user access for a Google Drive asset so it's now publicly shared, you can choose to remove the public sharing if the employee fulfills certain criteria.
* **Monitor risky identities** - Discover your internal SaaS identities to protect your organization from identity threats in Google Workspace.

## Prerequisites

To integrate BambooHR with DoControl, make sure you have fulfilled these prerequisites:&#x20;

* Integrator must have the following **read-only** permissions:
  * Basic Info
  * Employment Status
  * Job Information
* Create a BambooHR [custom access level](#create-a-bamboohr-custom-access-level)
* Before starting to integrate, you need to sign up with DoControl. Follow the onboarding steps in [Create first account](/docontrol-user-guide/getting-started/quick-start/set-up-docontrol-basics.md#create-first-account).

## Required permission scopes

The following **view-only** permissions enable DoControl to retrieve information from BambooHR:

#### Personal

* Basic information: Status, First Name, Middle Name, Last Name
* Contact information: Work Email (required) Mobile Phone and Home Email (optional)

#### Job

* Employment Status, Job Title, Department, Date

## Create a BambooHR custom access level&#x20;

As a prerequisite to integrating BambooHR with DoControl, you first need to create a BambooHR custom access level.

{% hint style="success" %}
We recommend to set up a dedicated user for the integration.
{% endhint %}

1. Log in with your domain to the BambooHR Access Level Settings.
2. Copy and paste this URL with your domain name:\
   `https://{your_company}.bamboohr.com/settings/access_levels/all`
3. In the BambooHR Settings Dashboard, go to **Levels**, click the **Plus** **+** icon, and select **Custom Access Level**. &#x20;
4. Under **Basic Info**, enter an **Access Level Name** (required) and a description (optional), then click **Next Step**.
5. Under **What Can People with this Access Level Do?** select **Company Field Settings**. Then click **Next step**.<br>

   <div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2F4r9EoAMedk7ze2ShbLeu%2FBamboo%20company%20field%20settings.png?alt=media&amp;token=5ffeedce-c89f-475a-b299-1bd0cf6ac233" alt="" width="563"><figcaption></figcaption></figure></div>
6. Under **See About Other Employees,** change the access levels of the fields below from No Access to **View Only** <img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FS1i5rRBWYgwdYA1CIekn%2FView%20only%20Bamboo.png?alt=media&amp;token=939f1d33-a0d5-4661-9678-ec68faf583c7" alt="" data-size="line">. Hover over each field, and click the eye icon that appears when the row is highlighted:
   1. Go to **Personal** **tab > Basic info** - Grant **View Only** access to these fields: Status, First Name, Middle Name, Last Name<br>

      <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2Fs8sadQlDIvnIJ2mf5Jyv%2FBamboo%20basic%20info.png?alt=media&amp;token=ec92c045-658d-4b93-b93a-bfd7bcd78273" alt=""><figcaption></figcaption></figure>
   2. Go to **Personal** **tab > Contact** - Grant **View Only** access to these fields:  Work Email, Home Email<br>

      <div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2Fz1nimKolFYb2CxA94kKU%2FBamboo%20contacts.png?alt=media&amp;token=1be3c6af-4b47-4e91-af9a-33e37858d6fc" alt="" width="521"><figcaption></figcaption></figure></div>
   3. Go to **Job > Employment status** - Grant **View** access to these fields: Employment Status: Date, Employment Status<br>

      <div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2Fjly5HAN1BFaa8qmjQFmA%2FBamboo%20Employment%20details.png?alt=media&amp;token=2ec8cfb3-20fa-461e-bd0e-8b34509d5eef" alt="" width="563"><figcaption></figcaption></figure></div>
   4. Go to **Job > Job information** - Grant **View** access to these fields: Job title, Department<br>

      <div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FNg20gufS6FlE5Du95IQF%2FBamboo%20Job%20info.png?alt=media&amp;token=da0b4973-33c6-4fa5-a0e6-9e5ce419be10" alt="" width="553"><figcaption></figcaption></figure></div>
7. Click **Save & Finish.**

## &#x20;Integrate BambooHR with DoControl

{% hint style="info" %}
If you start the integration without first creating a [custom access level](#create-a-bamboohr-custom-access-level), you will be redirected to the BambooHR homepage to log in and create the access level.
{% endhint %}

1. From the DoControl side menu, click **Integrations**.
2. Under the HRIS icon, click **Connect**.\
   ![](https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FqGTHh3nJnI49CPXQVqyS%2FBambooHR%20integrate.png?alt=media\&token=51679192-eb18-46f9-ad07-fcc0f0437613)\ <br>
3. Under Available, select **BambooHR**.\
   \
   ![](https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FVF9VX8T7H2OJ8PtLOekC%2FBambooHR%20integration.png?alt=media\&token=ecd79e26-a6fb-46d8-9d20-22b17a9605dc)
4. For the subdomain, enter your company name as it appears in the BambooHR URL.
5. For the API key, create a new API key in BambooHR:
   1. In BambooHR, click **My Account**.
   2. Select **My** **API keys > Add new key**.
   3. Click **Generate key**, and copy it.<br>

      <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FPf58xRbP1Yf37jaDpjQr%2FBamboo%20API%20keys.png?alt=media&amp;token=4d544626-c0a7-45db-b7e8-17cdca681aae" alt=""><figcaption></figcaption></figure>
6. In the DoControl integration wizard, paste the generated key from BambooHR.
7. Click **Save**. \
   BambooHR is now integrated.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docontrol.io/docontrol-user-guide/integrations/hris/bamboohr.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
