This article focuses specifically on the Outlook OAuth app. For more detailed information on creating OAuth apps for integrations, please refer to the Custom OAuth App for Integrations Guide.
To configure a custom OAuth app for all Outlook 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
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
In the Microsoft Entra Admin Center, click Identity> Applications > App registrations > New Registrations.
Enter the application name of your preference and select from the supported account types.
After creating your app, navigate to the app overview page and select Add a Redirect URI.
Navigate to Authentication under manage, click Add a platform, and select Web
Enter the following redirect URI: https://sana.ai/x-api/integration/outlook-email
Click Configure.
Next, we will add a client secret. Navigate to the the app overview page, click Add a certificate or secret in Client credentials.
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.
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.
Select Delegated permissions, search for and add the following permissions that are required by Sana AI:
offline_access
User.Read
User.ReadAll
Email
To grant consent to these permissions, click Grant admin consent for Sana Labs AB.
Enter the app values into Sana AI.