--- title: "Generate ClientID and SecretKey for SharePoint Integration" slug: "generate-clientid-and-secretkey-for-sharepoint-integration" updated: 2026-08-13T07:32:05Z published: 2026-08-13T07:32:05Z canonical: "support.whatfix.com/generate-clientid-and-secretkey-for-sharepoint-integration" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://support.whatfix.com/llms.txt > Use this file to discover all available pages before exploring further. # Generate ClientID and SecretKey for SharePoint Integration Generating Client ID and Secret Key for SharePoint Integration is a two-step process. **Step 1**: Register the Add-In **Step 2**: Grant permissions for the Add-in ### Step 1 : Register the Add-In 1. Log in with an admin account on the parent site, and then go to the following URL, ```plaintext https://[sitename].sharepoint.com/_layouts/15/appregnew.aspx ``` - **For sites**: Replace the **[sitename]** in the above URL with your site name. For example, if your SharePoint site is https://abcd.sharepoint.com, then replace the with **abcd**. - **For subsites**: To add subsites, append your subsite name to the site URL. For example, if your subsite URL is of the form: https://abcd.sharepoint.com/sites/subsite1, then the above URL is **https://abcd.sharepoint.com/sites/subsite1/_layouts/15/appregnew.aspx** 1. Enter the following information on the page that is displayed when you first visit the URL. - In the **App Information** section, click the **Generate** button next to the **Client Id** and **Client Secret** text boxes to generate the respective values. - In the **Title** textbox, enter the **Add-In**. - In the **App Domain** text box, enter the **localhost**. - In the **Redirect URL** text box, enter **https://localhost** 1. Click **Create**. ![RB_DB_CR.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/RB_DB_CR%281%29.png?sv=2026-02-06&spr=https&st=2026-11-22T15%3A35%3A40Z&se=2026-11-22T16%3A35%3A40Z&sr=b&sp=r&sig=hjOS5tMwcZNyvb69aoDLEHi0ng0Z2rNgkTZRVdsroto%3D) > [!NOTE] > Info > > The Add-in is registered, and the following message is displayed. ![RB_DB_CR_addin](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/RB_DB_CR_addin.png?sv=2026-02-06&spr=https&st=2026-11-22T15%3A35%3A40Z&se=2026-11-22T16%3A35%3A40Z&sr=b&sp=r&sig=5TMGFAFxN9PAPLmy%2BTS03LQDif2MIS%2B6tHblT3cJxns%3D) > [!WARNING] > your title goes here > > Make a note of the above information and share the Client ID and Client Secret with a Whatfix representative. ### Step 2: Grant Permissions for the Add-in Once the Add-In is registered, the next step is to set the permissions for that add-in to access the SharePoint data. > [!WARNING] > your title goes here > > Whatfix sets the read permission level to the web scope to be able to read the web information. 1. Go to the following URL in the browser. This redirects to the **Grant permission** page. ```plaintext https://.sharepoint.com/_layouts/15/appinv.aspx ``` - **For sites**: Replace the `<sitename>` in the above URL with your site name. For example, if your SharePoint site is https://abcd.sharepoint.com, then replace the `<sitename>` with **abcd**. - **For subsites**: To add subsites, append your subsite name to the site URL. For example, if your subsite URL is of the form: https://abcd.sharepoint.com/sites/subsite1, then the above URL is **https://abcd.sharepoint.com/sites/subsite1/_layouts/15/appinv.aspx** 1. Enter the Client ID (which you have generated earlier) in the **App Id** textbox, and click the **Lookup** button. > [!NOTE] > Info: > > This populates the value to other text boxes in Title, App Domain, and Redirect URL. 1. In the **App's Permission Request XML** section, enter the following permission request in XML format. ```plaintext ``` > [!WARNING] > Note: > > The permissions granted are Read-Only, so our API cannot update or delete any data from your SharePoint site. 1. Click **Create**. ![RB_DB_CR.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/RB_DB_CR%281%29.png?sv=2026-02-06&spr=https&st=2026-11-22T15%3A35%3A40Z&se=2026-11-22T16%3A35%3A40Z&sr=b&sp=r&sig=hjOS5tMwcZNyvb69aoDLEHi0ng0Z2rNgkTZRVdsroto%3D) 2. Click **Trust It** to trust the add-in to read items from your website. ![RB_DB_Trustit](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/RB_DB_Trustit.png?sv=2026-02-06&spr=https&st=2026-11-22T15%3A35%3A40Z&se=2026-11-22T16%3A35%3A40Z&sr=b&sp=r&sig=IvHlnTr02oUJKyXr80o29gwkAKUEmsYnAm4iJsGXY3A%3D)