> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-bradley-turek-pfilter-operators-reference.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-bradley-turek-pfilter-operators-reference/RBeS4IGQ8M20CrbI/images/kb/ka05w000001236O-00N5w00000Ri7BU-0EM5w000005vNz7.png?fit=max&auto=format&n=RBeS4IGQ8M20CrbI&q=85&s=67ddd0e2c95c76461d8a9a794096f0f0" 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-bradley-turek-pfilter-operators-reference/0dg3c9KIbU93dt8x/images/kb/ka0Vq0000006d0H-00N5w00000Ri7BU-0EM5w000006vIDX.jpg?fit=max&auto=format&n=0dg3c9KIbU93dt8x&q=85&s=d93d4ac02a132416b9713e0777e857fa" 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-bradley-turek-pfilter-operators-reference/0dg3c9KIbU93dt8x/images/kb/ka0Vq0000006d0H-00N5w00000Ri7BU-0EM5w000005vO6o.png?fit=max&auto=format&n=0dg3c9KIbU93dt8x&q=85&s=a97f8c82e9fdab1337e51cd2a3fc2ee7" 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-bradley-turek-pfilter-operators-reference/RBeS4IGQ8M20CrbI/images/kb/ka05w00000123LH-00N5w00000Ri7BU-0EM5w000005vO61.png?fit=max&auto=format&n=RBeS4IGQ8M20CrbI&q=85&s=95642f0534b601c987e50b53379d773c" 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-bradley-turek-pfilter-operators-reference/0dg3c9KIbU93dt8x/images/kb/ka0Vq0000006d0H-00N5w00000Ri7BU-0EM5w000006vIDc.jpg?fit=max&auto=format&n=0dg3c9KIbU93dt8x&q=85&s=d8af628169c15f5019e846c141ef1be2" 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-bradley-turek-pfilter-operators-reference/KFnnM21JEGElSW0a/images/kb/ka0Vq000000A67N-00N5w00000Ri7BU-0EM5w000005vO71.png?fit=max&auto=format&n=KFnnM21JEGElSW0a&q=85&s=7b7440ea71958f2831fd8393b60ddb0f" width="626" height="126" data-path="images/kb/ka0Vq000000A67N-00N5w00000Ri7BU-0EM5w000005vO71.png" />
   </Frame>
