> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neoagent.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Connecting Citrix Cloud to Neo

> Create a service principal in each client's Citrix Cloud account, then save it in Neo with the client's customer ID and region

Each of your clients has its own Citrix Cloud account, so you connect Citrix Cloud once per client. Neo signs in with a service principal made in that client's account: Citrix limits a service principal to one customer. Neo calls only the account of the ticket's client. Your own Citrix Cloud is a connection on your own company.

## 1. Create a service principal

**1. Open API Access**

Sign in to the client's Citrix Cloud console as a Full access administrator, open the menu, and go to **Identity and Access Management** > **API Access** > **Service principals**.

**2. Create it**

Click **Create service principal**, name it "Neo Agent", and choose its access. **Full access** lets Neo use every area your agent's permission groups allow. **Custom access** limits it further: give it at least a DaaS role that reads sessions and machines, such as **Help Desk Administrator**, and add the roles for the changes you want Neo to make.

**3. Copy the ID and secret**

Copy the service principal's **ID** and **Secret**. Citrix Cloud shows the secret once. Note its expiry date: when it expires, save a new secret in Neo.

> [!NOTE]
>
> If the service principal is limited to network locations, add [Neo's IP addresses](https://docs.neoagent.io/integrations/ip-whitelisting.md) to one of them, or Citrix Cloud refuses Neo's sign-in.

> [!NOTE]
>
> Connect a customer's own Citrix Cloud account. Neo refuses a Citrix Service Provider's shared DaaS site that holds tenants, because those tenants are other customers and a connection reaches one. To check, Neo lists the site's tenants, so the service principal needs a DaaS role that can read the site.

## 2. Find the customer ID and region

* **Customer ID**: shown at the top right of the console under the account name, and on the **API Access** page, such as `a1b2c3d4e5f6`.
* **Region**: the region the client's Citrix Cloud account was created in: United States, European Union, Asia Pacific South or Japan.

## 3. Add the credentials in Neo

**1. Open Integrations**

In the Neo Dashboard, open **Integrations** and find the Citrix Cloud card, under Servers & Virtualization.

**2. Pick the client**

In **Customer**, choose the client this account belongs to. The client must be on your **Companies** tab. For a second client, click **Add customer**.

**3. Save the credentials**

Choose the region and enter the customer ID, the client ID and the client secret, then click **Save settings**. Neo signs in on the region's host and reads the account before it saves, so a wrong secret, customer ID or region is refused straight away, with the reason.

## 4. Turn Citrix Cloud on per agent

Open the agent, go to its **Tools & Settings** tab, click **Servers & Virtualization**, and expand the **Citrix Cloud** block. Pick one of its **Presets**, or set each area yourself.

| Preset | What runs on its own | What asks a technician |
| - | - | - |
| **Read Only** | Every read | No write is allowed |
| **Helpdesk** | Every read | Logging off and messaging sessions, machine power and maintenance mode, and who may launch apps and desktops. Everything else stays read only |
| **IT Admin** | Every read, and changes to sessions, machines, delivery groups, apps, catalogs, the site, identities, Monitor settings, resource locations, licensing and WEM | Administrators, roles and scopes, Citrix policies, Secure Private Access, and Session Recording |
| **Full Automation** | Every read and write | The changes Neo always asks about (below) |

### Changes that always ask a technician

These ask under every preset, whatever the group's own approval setting:

* Every change to administrators: adding, changing or removing a Citrix Cloud administrator or their access, and a DaaS role, scope or admin folder.
* Restoring a site backup, which overwrites the site's configuration.
* Changing the site's security key, and creating, changing or resetting a hosting connection, which keeps its stored credential.
* Deleting a resource location, a Cloud Connector, a Session Recording site or a WEM configuration set.
* Updating a WEM record, which replaces the whole record; Neo keeps the values it hides from the stored one.
* Starting or stopping a recording of a user's session, and every change to Session Recording, which holds recordings of users' screens: who is recorded, who may watch, where recordings go, and the service's own settings.
* Importing over or replicating onto a WEM configuration set, which overwrites it.

## Limits

Session Recording and Workspace Environment Management use the same service principal; Neo calls each on its own host in the client's region. Citrix DaaS takes 10 calls a second for each customer, and Monitor refuses too many heavy queries at once. Neo keeps to 300 calls a minute for each client and waits when Citrix asks it to. Long actions, such as a restart or a logoff, run as Citrix jobs, and the agent reads the result on a later step.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.