> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-openapi-sync-dataflows.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding a Microsoft Sharepoint Online Rest OAuth Config

### Prerequisites

To connect to Microsoft SharePoint Online to retrieve the information, you must have the following:

* An installed Microsoft Azure app.
* The CLIENT ID and CLIENT SECRET. To generate an app and locate these credentials, see [Microsoft's documentation](https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app "Microsoft's documentation"). You may need the following information to register for the app:

  * **Azure Portal:** [https://portal.azure.com/](https://portal.azure.com/ "https://portal.azure.com/")
  * **Sharepoint App to Register:** SharePoint Online Rest API
  * **Domo Re-direct URL:** [https://oauth.domo.com/api/data/v1/oauth/providers/microsoft-sharepoint-online-rest-enterprise-oauth/exchange](https://oauth.domo.com/api/data/v1/oauth/providers/microsoft-sharepoint-online-rest-enterprise-oauth/exchange "https://oauth.domo.com/api/data/v1/oauth/providers/microsoft-sharepoint-online-rest-enterprise-oauth/exchange")

### Creating an Azure App for Enterprise OAuth

To create a Microsoft Azure app, do the following:

1. Log in to [https://portal.azure.com](https://portal.azure.com/ "https://portal.azure.com").

2. Select Microsoft Entra ID > App registrations.

   <Frame>
     <img alt="Capture1.PNG" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/blcgkVgnZv6gj_XY/images/kb/ka05w000001236O-00N5w00000Ri7BU-0EM5w000005vNz7.png?fit=max&auto=format&n=blcgkVgnZv6gj_XY&q=85&s=595e884485e262b8a3b708a307dc1fb7" style={{width: 624, height: 187}} width="770" height="231" data-path="images/kb/ka05w000001236O-00N5w00000Ri7BU-0EM5w000005vNz7.png" />
   </Frame>

3. Click **New registration**.

4. Enter the application name and select the supported account type. Enter the Redirect URI for Web as [https://oauth.domo.com/api/data/v1/oauth/providers/microsoft-sharepoint-online-rest-enterprise-oauth/exchange](https://oauth.domo.com/api/data/v1/oauth/providers/microsoft-sharepoint-online-rest-enterprise-oauth/exchange).

5. Change the default tenant selection from single tenant to multi tenant. This is a requirement for the connector.

   <Frame>
     <img alt="REgister.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000006d0H-00N5w00000Ri7BU-0EM5w000006vIDX.jpg?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=b2a1d20758c876a3eec74aac755eb99b" style={{width: 755, height: 582}} width="2100" height="1620" data-path="images/kb/ka0Vq0000006d0H-00N5w00000Ri7BU-0EM5w000006vIDX.jpg" />
   </Frame>

6. Click **Register**.

7. Now, click **API Permissions**.

   <Frame>
     <img alt="API_permission.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000006d0H-00N5w00000Ri7BU-0EM5w000005vO6o.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=7469db78ea4d37281c3c825c3e34dac2" style={{width: 294, height: 473}} width="265" height="426" data-path="images/kb/ka0Vq0000006d0H-00N5w00000Ri7BU-0EM5w000005vO6o.png" />
   </Frame>

8. Click **+Add Permissions** button.

   <Frame>
     <img alt="Capture8.PNG" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/blcgkVgnZv6gj_XY/images/kb/ka05w00000123LH-00N5w00000Ri7BU-0EM5w000005vO61.png?fit=max&auto=format&n=blcgkVgnZv6gj_XY&q=85&s=d361854fb29fa710f256f60117e2dab9" width="369" height="62" data-path="images/kb/ka05w00000123LH-00N5w00000Ri7BU-0EM5w000005vO61.png" />
   </Frame>

9. Select **Microsoft Graph > Delegated Permissions**.

10. Select the permissions as required.

11. After adding the permissions, all configured permissions will be listed as below.

    <Frame>
      <img alt="Configure.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000006d0H-00N5w00000Ri7BU-0EM5w000006vIDc.jpg?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=b1215814bf51f1932939a18d13f0fc9e" style={{width: 1099, height: 468}} width="2728" height="1162" data-path="images/kb/ka0Vq0000006d0H-00N5w00000Ri7BU-0EM5w000006vIDc.jpg" />
    </Frame>

### To Obtain the Sharepoint CLIENT ID:

1. Go to [https://portal.azure.com](https://portal.azure.com/ "https://portal.azure.com").
2. Select Microsoft Entra ID > App registrations.
3. Find and click on your web app.
4. The "application" ID is your CLIENT ID.

### To obtain the Sharepoint CLIENT SECRET:

1. Go to [https://portal.azure.com](https://portal.azure.com/ "https://portal.azure.com").
2. Select Microsoft Entra ID > App registrations.
3. Find and click on your web app.
4. Open **Certificates and secrets**.
5. Click **+New Value**.
6. Provide the value description and the expiry period for your secret. Click **Add**.
7. Your new value will appear. Copy the Value field and paste it in your Domo connector Value field.

   <Frame>
     <img alt="Secret.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/XLeSvlwfBHPJHbmY/images/kb/ka0Vq000000A67N-00N5w00000Ri7BU-0EM5w000005vO71.png?fit=max&auto=format&n=XLeSvlwfBHPJHbmY&q=85&s=fb4fbadf207106e9814c8fcf5e5d1b31" width="626" height="126" data-path="images/kb/ka0Vq000000A67N-00N5w00000Ri7BU-0EM5w000005vO71.png" />
   </Frame>
