> 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/citrix-director.md).

# Citrix Director

Citrix Director is the monitoring console for Citrix Virtual Apps and Desktops. OctoXLabs uses its OData API to add machines, with their IP address and agent version, to the inventory.

## Use cases

* List machines that Citrix Director monitors.

```
Adapters = citrix-director
```

* Find monitored machines that have no endpoint agent.

```
Adapters = citrix-director AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination                                             | Port               | Protocol |
| ------------------- | ------------------------------------------------------- | ------------------ | -------- |
| OctoXLabs connector | api-eu.cloud.com (Citrix Cloud) or your Director server | 443 (configurable) | HTTPS    |

### Required permissions

| Scope or role                                             | Permission | Needed for               |
| --------------------------------------------------------- | ---------- | ------------------------ |
| Citrix Virtual Apps and Desktops administrator, read-only | Read       | Machines (Monitor OData) |

## Create credentials in Citrix Director

{% stepper %}
{% step %}

### Cloud: create a service principal

In the Citrix Cloud console open the menu in the upper left corner. Select **Identity and Access Management > API Access > Service principals > Create service principal** and complete the steps. If the options are missing, ask an administrator for full access permission to manage service principals. The principal needs the Citrix Virtual Apps and Desktops administrator role with read-only privileges.
{% endstep %}

{% step %}

### Cloud: save the secret

Store the client ID and secret in your secret management tool. The secret is shown only once.
{% endstep %}

{% step %}

### Cloud: find the Customer ID

In **Identity & Access Management**, open the **API Access** tab. Under Secure Clients click your service principal. The Customer ID is in the details window.
{% endstep %}

{% step %}

### On-premises: prepare an account

Use an NTLM account that is a Citrix Virtual Apps and Desktops (CVAD) administrator with read-only access to the machines. Leave Client ID, Client Secret and Customer ID empty.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required         | Type     | Default          | Description                                                                      |
| ------------- | ---------------- | -------- | ---------------- | -------------------------------------------------------------------------------- |
| IP            | Yes              | Text     | api-eu.cloud.com | Citrix Cloud API host, or the IP of your Director.                               |
| Port          | No               | Number   | 443              | Port.                                                                            |
| Client ID     | Cloud only       | Text     |                  | Service principal client ID. Leave the username and password empty in the cloud. |
| Client Secret | Cloud only       | Password |                  | Service principal secret.                                                        |
| Customer ID   | Cloud only       | Text     |                  | Citrix Cloud customer ID. When filled, the adapter uses the cloud endpoints.     |
| Username      | On-premises only | Text     |                  | NTLM account.                                                                    |
| Password      | On-premises only | Password |                  | Password of the account.                                                         |
| Is Secure     | No               | Boolean  | True             | Use HTTPS.                                                                       |
| Timeout       | No               | Number   | 30               | Seconds to wait for API responses.                                               |

## Troubleshooting

No adapter-specific error messages are documented for this adapter.

## Change history

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