Skip to main content
All CollectionsIntegrations
Custom OAuth App Guide - SharePoint
Custom OAuth App Guide - SharePoint
J
Written by Jenny Mae Ko
Updated over a week ago

This article focuses specifically on the SharePoint OAuth app. For more detailed information on creating OAuth apps for integrations, please refer to the Custom OAuth App for Integrations Guide.

  1. To configure a custom OAuth app for all SharePoint integrations, you will need the following:

    Multi-tenant app: Client ID and client secret

    Single-tenant app: Client ID, client secret, and tenant ID

    Click Settings>Workspace Settings>Integrations> Scroll down to the Custom OAuth app for integrations> Configure

  2. Enter your client ID and client secret in the appropriate fields. For single-tenant applications, also input your tenant ID.

How to register an app in Microsoft Entra Admin Center

  1. In the Microsoft Entra Admin Center, click Identity> Applications > App registrations > New Registrations.

  2. Enter the application name of your preference and select from the supported account types.

  3. After creating your app, navigate to the app overview page and select Add a Redirect URI.

  4. Navigate to Authentication under manage, click Add a platform, and select Web.

  5. Enter the following redirect URI: https://sana.ai/x-api/integration/sharepoint. Click Configure.

  6. Add a second redirect URI: https://sana.ai/x-api/integration/sharepoint-centralized following the steps above. Click Save.

  7. Next, we will add a client secret. Navigate to the the app overview page, click Add a certificate or secret in Client credentials.

  8. In the Client Secrets tab, click on New client secret. Provide an optional description and select an expiration time that works for you. Click Add.

  9. To prevent users from needing to request admin consent during the authorization process, we will include the permissions required by Sana AI and grant consent for them. Navigate to the API permissions page, click Add a permission, and select Microsoft Graph.

  10. Select Delegated permissions, search for and add the following permissions that are required by Sana AI:

    • Users.Read.All

    • Files.Read.All

    • Sites.Read.All

  11. To grant consent to these permissions, click Grant admin consent for Sana Labs AB.

12. Enter the app values into Sana AI.

Did this answer your question?