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

# Cornerstone

Cornerstone OnDemand is a talent and learning management platform. OctoXLabs uses its API to add employees to the user inventory.

## Use cases

* List employees that Cornerstone reports.

```
Adapters = cornerstone
```

* Find Cornerstone employees that have no Active Directory account.

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

## Before you begin

### Network

| Source              | Destination         | Port | Protocol |
| ------------------- | ------------------- | ---- | -------- |
| OctoXLabs connector | {corpname}.csod.com | 443  | HTTPS    |

### Required permissions

| Scope or role   | Permission           | Needed for                                    |
| --------------- | -------------------- | --------------------------------------------- |
| employee:read   | Read                 | Employees (/x/users/v2/employees)             |
| employee:create | Not used for reading | Requested by the adapter in the token request |

## Create credentials in Cornerstone

{% stepper %}
{% step %}

### Open API management

Log in to your Cornerstone portal and go to **Admin > Tools > Edge > API Management**.
{% endstep %}

{% step %}

### Register the application

Under **Manage Applications** click **Register New Application** and enter an **Application Name**.
{% endstep %}

{% step %}

### Set the user and validity

Enter the **User ID** of an active user in your portal. Set the **Access Token Validity Period** in seconds. The valid range is 300 to 86,400 and the default is 3600.
{% endstep %}

{% step %}

### Select scopes

In the **Scopes** section select the permissions. For example select **employee:read** and **employee:create**. Click **Modify** under an API product to choose scopes, or check **Cornerstone API** and **Reporting API** for full access. Click **Save**.
{% endstep %}

{% step %}

### Register and copy

Click **Register Application**. If the User ID is valid, the page shows the **Client ID** and **Client Secret**. Copy and store both values securely.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type     | Default | Description                                                                    |
| ------------- | -------- | -------- | ------- | ------------------------------------------------------------------------------ |
| Corp Name     | Yes      | Text     |         | Your unique subdomain. For `https://yourcompany.csod.com` it is `yourcompany`. |
| Client ID     | Yes      | Text     |         | Client ID of the registered application.                                       |
| Client Secret | Yes      | Password |         | Client secret of the registered application.                                   |
| Is Secure     | No       | Boolean  | True    | Use HTTPS.                                                                     |
| Timeout       | No       | Number   | 30      | Seconds to wait for API responses.                                             |

## Troubleshooting

| Error message                                                              | Cause                                | Fix                               |
| -------------------------------------------------------------------------- | ------------------------------------ | --------------------------------- |
| Failed to complete request to ... after ... retries. Last status code: ... | The request failed after 5 attempts. | Check the credentials and scopes. |

## Change history

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