Citrix ShareFile supports external integration through an HTTP-based REST API.\\
\\
Generate an api key using : [https://api.sharefile.com/rest/oauth2-request.aspx]\\
- the redirect url must be added (that requires that the admin should be logged in through an HTTPS, as Citrix only allows https for redirect url) like : https://www.example/?command=register_citrix_api, it also need to end with "?command=register_citrix_api".\\
[attachments|api_key.png]\\
So take your domain url, and append the "?command=register_citrix_api" to the end of it.
\\
Now that the API is enabled, and your credentials are setup, and your redirect domain is configured, you can use the credentials in CrushFTP to get your Citrix auth token and get access.\\
In the User Manager, add a new remote VFS item type and set the protocol to be "Citrix".\\
Take your Citrix client_id and secret and combine them together with a tilde as separator:\\
{{{
client_id: Tx7gIXXXXXXXXXXXXXXXI3q3o6o
secret: teArrBXXXXXXXXXXXDm1G2mAIb69dXXXXXXXXXXnAJvW4h
}}}
results in:
{{{
Tx7gIXXXXXXXXXXXXXXXI3q3o6o~teArrBXXXXXXXXXXXDm1G2mAIb69dXXXXXXXXXXnAJvW4h
}}}

That whole long string becomes your "Client ID" to Citrix://.\\
Copy and paste it into the Client ID field. Then click "Get Refresh Token" to finish the config.\\
\\
[attachments|vfs.png]
\\
Give your citrix credentials when the  form appears:\\
\\
[attachments|credentials.png]\\
\\
The password should be filed in, and you can test the connection :\\
\\
[attachments|success.png]\\