Source: https://nishanth-fern-test.docs-staging.pageloop.ai/desktop/generate-sharefile-credentials

# Generate ShareFile Credentials

Integrating ShareFile with Whatfix enables you to fetch and display content from your ShareFile repository as contextual links in Self Help and Task List widgets. You can either fetch all the content or only the content in particular folders.

You need the following prerequisites from ShareFile to integrate content with Whatfix:

- Client ID
- Client Secret
- Authorization Code.

In case of confidentiality, you can create a dummy employee account with limited folder permissions to generate the necessary credentials.

Expand the following accordions for more details:

**Create a new employee in ShareFile**

> [!WARNING]
>
> Only a ShareFile user with an Admin account can create a new employee ID.

Once you have logged in to your ShareFile dashboard, use the following steps shown in the slideshow to create a new employee.

[Embedded content](https://cdn.whatfix.com/prod/cd7429f0-8ab4-11ea-a71e-bacbbe07b880/deck.html?closeable=false\&true=undefined\&entId=cd7429f0-8ab4-11ea-a71e-bacbbe07b880&_anal=%5B%22Account+Manager%22%2C%22cd7429f0-8ab4-11ea-a71e-bacbbe07b880%22%5D\&nolive=1#!/e8be6810-f1a2-11ea-b471-2a8342861064/)

**Generating Client ID and Client Secret**

Use the following steps to generate the necessary credentials in ShareFile,

1. Log in to the [ShareFile API Generator](https://api.sharefile.com/login?displayMessage=1\&page=oauthclient).
2. In the **API Key Generator** page, enter the **Application name**. ![SF\_app\_name](/images/42/SF_app_name-4239d805.png)
3. Select the I don't know or will not use a Redirect URI checkbox. ![SF\_rediredt\_URI](/images/a5/SF_rediredt_URI-a5eb817b.png)

> [!WARNING]
>
> This generates a Redirect URI automatically.

1. Click **Generate API Key**. ![sharefile\_generate\_key2](/images/bb/sharefile_generate_key-2-bbf94587.png)
2. Once generated, the credentials and URI are displayed under the Your API Keys section. ![Sharefile\_api\_keys](/images/82/Sharefile_api_keys-827da8ac.png)

**Generating Authorization code**

> [!WARNING]
>
> The Authorization code generated is valid only for 10 minutes and must be handed over to a Whatfix representative before the code expires.

Use the following steps to generate the Authorization code,

1. Copy and paste the following URL in your preferred browser.

> [!WARNING]
>
> Replace \<your\_client\_id> with the **Client ID** and \<your\_redirect\_uri> with the **Redirect URI** generated earlier.

```plaintext
https://secure.sharefile.com/oauth/authorize?response_type=code&client_id=<your_client_id>&redirect_uri=<your _redirect_uri>#Credentials
```

1. Log in to the same Sharefile account that you used to create the credentials.
2. After you log in, copy the URL that appears on your browser.

> [!WARNING]
>
> The value of the code parameter in the URL is the Authorization code. [https://secure.sharefile.com/oauth/oauthcomplete.aspx?code=\*\*\&lt;Authorization\_code\_generated>\*\*\&subdomain=sunenterprise\&apicp=sharefile.com\&appcp=sharefile.com\&pwc=False\&h=454Zd6y3cLV+d06bUNzcSSMHVnMIOGtTOAQJD7DtL+Y=](https://secure.sharefile.com/oauth/oauthcomplete.aspx?code=**\&lt;Authorization_code_generated>**\&subdomain=sunenterprise\&apicp=sharefile.com\&appcp=sharefile.com\&pwc=False\&h=454Zd6y3cLV+d06bUNzcSSMHVnMIOGtTOAQJD7DtL+Y=)
