Microsoft Graph API (MS365) is used to interact with Microsoft 365 services like Outlook, Teams, Excel, Azure, etc.
JIFFY.ai uses MS365 to interact with Outlook mail.
Create an Application
- Create a Microsoft Azure account and navigate to Portal.
- Click the App registrations option.
- Click the + New registration option.
- Enter a Name for your application and select the required option in the Supported account types section.
Preferably, use the Single tenant option.
- Click the Register button to create the application.
- Note the Client ID in the Overview section.
Pre-requisites set-up
Create Secret Key
- Open the created application.
- Click the Certificates & secrets option in the left-hand side menu and click the + New Client Secret button.
- Enter Description and choose when the key Expires. Click the Add button.
API Permissions
- Open the created application.
- Click the API permissions option in the left-hand side menu and click the + Add a permission button.
- In the Commonly used Microsoft APIs tab of the Request API permissions window, click on Microsoft Graph.
- Click the Delegated permissions button.
- Select the following permissions and click the Add permissions button.
- Calendar
- Calendars.Read
- Calendars.ReadWrite
- Files
- Files.Read
- Files.Read.All
- Files.ReadWrite
- Files.ReadWrite.All
- Sites
- Sites.Read.All
- Sites.ReadWrite.All
- Mail
- Mail.Read
- Mail.ReadWrite
- Mail.Send
- Shared*
- Mail.Read.Shared
- Mail.ReadWrite.Shared
- Mail.Send.Shared
- Calendars.Read.Shared
- * Calendars.ReadWrite.Shared
- * Scopes needed to access resources that are shared with, but not owned by, the user.
- Click the Grant admin consent button.
Disable MFA (Multi Factor Authentication)
Do the follwing to disable the Multi Factor Authentication for the user to connect.
- Sign in to the Portal as an administrator.
- Navigate to the Multi-Factor Authentication page.
- Select the user to disable the MFA and click Disable.