> 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-sharefile.md).

# Citrix ShareFile

Citrix ShareFile is a cloud file sharing service. OctoXLabs uses it to add ShareFile employees and client users to the user inventory.

## Use cases

* List ShareFile employees and clients.

```
Adapters = citrix-sharefile
```

* Find ShareFile users that are not in the identity provider.

```
Adapters = citrix-sharefile AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                                                     | Port | Protocol |
| ------------------- | --------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | {subdomain}.sharefile.com or {subdomain}.sharefile.eu (sign in) | 443  | HTTPS    |
| OctoXLabs connector | {subdomain}.sf-api.com, or the API host returned at sign in     | 443  | HTTPS    |

### Required permissions

| Scope or role                              | Permission | Needed for                           |
| ------------------------------------------ | ---------- | ------------------------------------ |
| ShareFile user (employee) used for sign in | Read       | Employees and clients of the account |

## Create credentials in Citrix ShareFile

{% stepper %}
{% step %}

### Open the API portal

Sign in to `https://api.sharefile.com` with your ShareFile account.
{% endstep %}

{% step %}

### Create the application

Select **Get an API Key** and create a new OAuth2 application.
{% endstep %}

{% step %}

### Copy the credentials

Copy the generated **Client ID** and **Client Secret**.
{% endstep %}

{% step %}

### Choose the user

Decide which ShareFile user the adapter signs in with. Enter its username and password in the connection.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type     | Default       | Description                                                                         |
| ------------- | -------- | -------- | ------------- | ----------------------------------------------------------------------------------- |
| Subdomain     | Yes      | Text     |               | Subdomain of your account. For `https://mycompany.sharefile.com` it is `mycompany`. |
| Domain        | No       | Text     | sharefile.com | Use `sharefile.com` for US accounts and `sharefile.eu` for EU accounts.             |
| Client ID     | Yes      | Text     |               | Client ID of the OAuth2 application.                                                |
| Client Secret | Yes      | Password |               | Client secret of the application.                                                   |
| Username      | Yes      | Text     |               | ShareFile user the adapter signs in with.                                           |
| Password      | Yes      | Password |               | Password of the user.                                                               |
| Proxy URL     | No       | Text     |               | Proxy URL.                                                                          |
| Timeout       | No       | Number   | 30            | Seconds to wait for API responses.                                                  |

## Troubleshooting

| Error message                | Cause                                      | Fix                                    |
| ---------------------------- | ------------------------------------------ | -------------------------------------- |
| Max retries exceeded for ... | The request kept failing after 5 attempts. | Check the credentials and rate limits. |

## Change history

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