> 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/i/ivanti-cherwell-service-management.md).

# Ivanti Cherwell Service Management

Cherwell Service Management (CSM) is an IT service management platform. OctoXLabs reads the CSM system users and their security group through the CSM REST API.

## Use cases

* List the users OctoXLabs collected from Cherwell Service Management.

```
Adapters = ivanti-cherwell-service-management
```

* Check what one connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                           | Port               | Protocol                                 |
| ------------------- | ------------------------------------- | ------------------ | ---------------------------------------- |
| OctoXLabs connector | CSM REST API host, under /CherwellAPI | 443 (configurable) | HTTPS, or HTTP when Is secure is cleared |

### Required permissions

| Scope or role                  | Permission                     | Needed for |
| ------------------------------ | ------------------------------ | ---------- |
| Security group of the CSM user | View users and security groups | Users      |

The security settings of the CSM user stay in effect for the REST API, so its security group may need the rights to view users and security groups. A user that logs in to the REST API consumes a CSM license.

## Create credentials in Cherwell Service Management

{% stepper %}
{% step %}

### Open REST API client settings

In **CSM Administrator**, select **Security**, then **Edit REST API client settings**.
{% endstep %}

{% step %}

### Add a client

Select the plus (**+**) icon. Enter a name and a description, set the token lifespan, and make sure **API access is enabled** is selected.
{% endstep %}

{% step %}

### Copy the client key

Select **Save** and copy the **Client Key** value. It is a 36 character string and is used as the Client id.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
CSM invalidates the tokens in use before each new token request. Use this user and client id for this adapter only.
{% endhint %}

## Connection parameters

| Parameter           | Required | Type    | Default  | Description                                                                                                                                                   |
| ------------------- | -------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| IP                  | Yes      | String  | None     | Host name or IP address of the server that hosts the CSM REST API. Enter the host only, without `https://` or a path. The API is called under `/CherwellAPI`. |
| Port                | No       | Integer | 443      | Port of the CSM REST API.                                                                                                                                     |
| Client id           | Yes      | String  | None     | API client key created in CSM Administrator.                                                                                                                  |
| Username            | Yes      | String  | None     | Login id of the CSM user. For Windows and LDAP modes you can also use `domain\username`.                                                                      |
| Password            | Yes      | String  | None     | Password of the user.                                                                                                                                         |
| Authentication mode | No       | String  | Internal | `Internal`, `Windows`, `LDAP` or `Auto`. It must be a mode used by the CSM Browser Client.                                                                    |
| Is secure           | No       | Boolean | True     | Use HTTPS.                                                                                                                                                    |
| Timeout             | No       | Integer | 30       | Seconds to wait for API responses.                                                                                                                            |

## Troubleshooting

| Error message | Cause                                                   | Fix                                                                      |
| ------------- | ------------------------------------------------------- | ------------------------------------------------------------------------ |
| Not verified  | No connector code was available to confirm error texts. | Check the host, port, client id, user, password and authentication mode. |

## Change history

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