> 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/g/glpi.md).

# GLPI

GLPI is an open-source IT asset management and helpdesk platform. OctoXLabs reads the computers recorded in GLPI and adds them to the device inventory.

## Use cases

* List all computers recorded in GLPI.

```
Adapters = glpi
```

* Find GLPI computers that are missing from Active Directory.

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

## Before you begin

### Network

| Source              | Destination                  | Port                        | Protocol                           |
| ------------------- | ---------------------------- | --------------------------- | ---------------------------------- |
| OctoXLabs connector | GLPI server (`/apirest.php`) | 443 (default, configurable) | HTTPS (HTTP when Is secure is off) |

### Required permissions

| Scope or role            | Permission                            | Needed for |
| ------------------------ | ------------------------------------- | ---------- |
| User whose token is used | Read access to Computers              | Devices    |
| GLPI API configuration   | REST API enabled, app token available | API access |

The exact GLPI profile is Not verified.

## Create credentials in GLPI

{% stepper %}
{% step %}

### Get the user token

Open the user's **User Preference** page and copy the **Remote access key**. This is the user token.
{% endstep %}

{% step %}

### Get the app token

Use the authorization string provided by the GLPI API configuration. This is the app token.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter  | Required | Type             | Default | Description                        |
| ---------- | -------- | ---------------- | ------- | ---------------------------------- |
| Ip         | Yes      | Text             | None    | IP address of the GLPI host.       |
| Port       | No       | Integer          | 443     | Port number.                       |
| User token | Yes      | Text (sensitive) | None    | User remote access key.            |
| App token  | Yes      | Text (sensitive) | None    | App token of the GLPI API client.  |
| Is secure  | No       | Boolean          | True    | Use SSL.                           |
| Timeout    | No       | Integer          | 30      | Seconds to wait for API responses. |

## Troubleshooting

| Error message | Cause                                        | Fix                                                        |
| ------------- | -------------------------------------------- | ---------------------------------------------------------- |
| Not verified  | The code has no adapter-specific error text. | Check the log for `Status Code`, `URL` and `Method` lines. |

## Change history

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