Skip to content
Last updated

Citrix ShareFile integration

Integrating Citrix ShareFile with Frontegg allows your application to authenticate users via OAuth 2.0 and interact with their ShareFile accounts — browsing folders, uploading and downloading files, managing shares, and accessing account information on their behalf.

ShareFile issues OAuth credentials per account through its API Key generator. In addition to the standard Client ID and Client Secret, ShareFile is scoped to a per-account control-plane host, so you also provide your account subdomain and API control plane when configuring the integration.


Prerequisites

  • A Citrix ShareFile account with API access (OAuth 2.0 enabled)
  • Permission to generate API keys for your account at api.sharefile.com

Connect Citrix ShareFile

Step 1: Open the ShareFile API Key generator

Go to api.sharefile.com and sign in with your ShareFile account. In the left menu, open Get an API Key. The Your API Keys page lists any existing keys. Click Create New.

ShareFile API Key generator

Step 2: Register a new application

On the API Key Generator page, fill in the form:

  • Application Name — a name for your application, for example Frontegg Integration (do not include the word "ShareFile").

  • Description — an optional description of the application.

  • Redirect URI — your Frontegg Redirect URL, which must use HTTPS and match the authorization request exactly:

    https://YOUR_MCP_GATEWAY_URL/integration-callback

Click Generate Api Key to create the application.

Register a ShareFile application

Step 3: Copy the Client ID and Client Secret

Back on the Your API Keys page, your application appears in the list with its Client Id and Client Secret. Copy both values for use in the Frontegg portal.

Keep your credentials secure

Never share or commit your Client Secret to version control.

ShareFile Client ID and Client Secret

Step 4: Note your subdomain and API control plane

ShareFile scopes the API to your account's control-plane host, so the integration also needs two account-specific values:

  • Subdomain — your ShareFile account subdomain. It appears in the top bar of the API portal and in your account URL — for example, mycompany from https://mycompany.sharefile.com.
  • API control plane — your account's API host. US accounts use sf-api.com; EU accounts use sf-api.eu.

ShareFile subdomain

Configure the Frontegg portal

Once you have your Client ID, Client Secret, subdomain, and API control plane, configure the integration in the Frontegg portal:

  1. Open the Frontegg portal and navigate to [ENVIRONMENT]IntegrationsCitrix ShareFile.
  2. Enter the Client Id in the Client ID field and the Client Secret in the Client Secret field.
  3. Enter your ShareFile subdomain (for example, mycompany) and API control plane (for example, sf-api.com).
  4. Click Save.

Scopes

Frontegg requests the sharefile:restapi:v3 and openid scopes during authorization to access the ShareFile REST API. There is no separate scope-selection screen in the API Key generator.

Additional resources