Microsoft Graph is a RESTful web API that enables you to access Microsoft Cloud service resources. You can use the Microsoft Graph API to build apps that access, analyze, and augment data from Microsoft 365.
So, Microsoft Graph API is the gateway to data and the intelligence in Microsoft 365 . The Microsoft Graph API offers a single point endpoint , to access People centric data and insight in the Microsoft cloud , including Microsoft 365.
You can use REST API’s or SDK to access the endpoints.
Graph API Working Model
Steps for Graph API Integration
From Microsoft
Step 1- App Registration [ Done on Microsoft website ]
This process is followed to register the application to Microsoft & creation of tenant account .
Create Microsoft business account
Login to Azure Portal
Register your application
On successful registration Client Id & Tenant Id will be generated
Generate new client secret
Step 2 – Add Permissions
From Pega
Step 1 – Create the Authentication Profile
To send or receive emails in Pega Platform by using Microsoft Graph, configure an OAuth 2.0 authentication profile. Microsoft Graph supports only OAuth 2.0 authentication.
The OAuth 2.0 provider is an authorization server that provides token-based authorization so that Pega Platform can access external web service APIs. When you use OAuth 2.0, Pega Platform, the provider negotiates a token that Pega Platform uses to access the external application for a defined period.
Step 2 – Open APP Studio > Email Integration > Microsoft Office 365 > Graph