> 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/m/manage-engine-service-desk-plus.md).

# Manage Engine Service Desk Plus

ManageEngine ServiceDesk Plus is an IT help desk and asset management platform. OctoXLabs reads its assets and workstations, merges the two by name, and adds them to the device inventory.

## Use cases

* **Find CMDB assets with no directory record.** List assets recorded in ServiceDesk Plus that Active Directory does not report.

```
Adapters = manage-engine-service-desk-plus AND NOT Adapters = active-directory
```

* **Review the asset records in ServiceDesk Plus.** Use this to compare the help desk asset list with your discovered inventory.

```
Adapters = manage-engine-service-desk-plus
```

## Before you begin

### Network

| Source              | Destination                                                 | Port                 | Protocol                   |
| ------------------- | ----------------------------------------------------------- | -------------------- | -------------------------- |
| OctoXLabs connector | ServiceDesk Plus host (IP parameter)                        | 443 (Port parameter) | HTTPS (HTTP if SSL is off) |
| OctoXLabs connector | Zoho accounts URL (Zoho accounts url parameter), cloud only | As in the URL        | As in the URL              |

### Required permissions

| Scope or role                                 | Permission   | Needed for              |
| --------------------------------------------- | ------------ | ----------------------- |
| SDPOnDemand.assets.READ (OAuth scope, cloud)  | Read         | Assets and workstations |
| Profile of the auth token owner (on-premises) | Not verified | Assets and workstations |

The baseline says the `SDPOnDemand.assets.READ` scope should be enough.

## Create credentials in ManageEngine ServiceDesk Plus

{% stepper %}
{% step %}

### Cloud: register a client

In the Admin Console, find the **OAuth Configuration** section and click **Add Client**. Fill in the details and configure the scopes. If you have no domain name or redirect URL, you can use dummy values to register the client.
{% endstep %}

{% step %}

### Cloud: generate a code

Open the Zoho API Console at `https://api-console.zoho.com/`. Click **Add client**, choose **Self Client** and click **Create**. In the **Generate Code** tab, enter the scope `SDPOnDemand.assets.READ` and generate the code. Save the code, the Client ID and the Client Secret.
{% endstep %}

{% step %}

### Cloud: get the refresh token

Send a POST request to `https://accounts.zoho.com/oauth/v2/token` with `grant_type=authorization_code`, `code`, `client_id` and `client_secret`. Copy the `refresh_token` value from the response.
{% endstep %}

{% step %}

### On-premises: copy the auth token

Use the token retrieved from your SDP profile as the **Auth Token**.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter         | Required | Type    | Default | Description                                                                                                        |
| ----------------- | -------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------------ |
| IP or Domain      | Yes      | String  | None    | Address of your SDP instance. For cloud it looks like `sdp.manageengine.com`.                                      |
| Port              | No       | Integer | 443     | Port of the SDP instance.                                                                                          |
| Client ID         | No       | String  | None    | OAuth client ID (cloud only).                                                                                      |
| Client Secret     | No       | String  | None    | OAuth client secret (cloud only).                                                                                  |
| Refresh Token     | No       | String  | None    | OAuth refresh token (cloud only).                                                                                  |
| SSL               | No       | Boolean | True    | Use HTTPS.                                                                                                         |
| Redirect URI      | No       | String  | None    | Must match the redirect URI used when the client was added.                                                        |
| Portal Name       | No       | String  | None    | Portal name, used in the path `/app/<portal>` for cloud. The baseline says to set it if you have multiple portals. |
| Is On Prem?       | No       | Boolean | False   | Set it when the SDP instance is on-premises.                                                                       |
| Zoho accounts url | No       | String  | None    | Account URL of your Zoho domain, used for the token request.                                                       |
| Auth Token        | No       | String  | None    | Token from your profile. Used only for on-premises.                                                                |
| Timeout           | No       | Integer | 30      | Seconds to wait for an API response.                                                                               |

## Troubleshooting

| Error message                                                  | Cause                                                                                   | Fix                                                     |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The API answered with a status other than 200. This is the shared REST connector error. | Check the credentials, the portal name and the address. |

## Change history

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