Unify Integrations
Logo
Microsoft Graph API

Microsoft Graph API

Logo

4 mins READ

Microsoft Graph API is a unified RESTful endpoint that allows developers to access data and intelligence across Microsoft 365 services like Outlook, Teams, OneDrive, and Azure Active Directory. It enables secure, granular, and real-time interactions with user and organizational data.

Integrating Microsoft Graph API provides a single access point to build powerful, cross-platform Microsoft 365 applications with real-time insights and seamless data flow. 

Authentication

Ensure you have the following information ready for a seamless integration process:

  • Connection Name: Select a descriptive name for your connection, like "MyAppMicrosoftGraphAPIIntegration". This helps in easily identifying the connection within your application or integration settings.

  • Authentication Type: Select one of the following: OAuth, OAuth with Client credentials or Client credentials.

OAuth

  1. Select OAuth as the Authentication type.

  2. (Optional) Enter your Tenant ID.

  3. Select the required Scopes.

  4. Click Authorize, then sign in to your Microsoft account and approve the requested scopes.

OAuth with Client credentials and Client credentials

Both options use your own Azure app registration.

  • Sign in to the Microsoft Azure Portal.

  • In the search bar, search for App registrations and click New registration.

  • Enter the name and supported account types and register your app. For OAuth with Client credentials, copy the Callback URL shown in the UnifyApps connection form and add it as a Redirect URI.

Frame 30.png
Frame 30.png
  • In the Overview tab, you can find the Client ID and Tenant ID. Required permissions can be granted in the API Permissions tab

Frame 31.png
Frame 31.png
  • To create a client secret, click on the Certificates and Secrets tab and click on New client secret. Copy the “Value” as the Client secret and store it securely to prevent unauthorized access.

Frame 32.png
Frame 32.png

In the connection form:

  • OAuth with Client credentials: enter the Client ID, Client Secret and (optional) Tenant ID, select the Scopes you added to the app, then click Authorize and sign in.

  • Client credentials: enter the Client ID, Client Secret and Tenant ID. No user sign-in is needed; grant the app's permissions with admin consent in the API Permissions tab.

Permissions

Scope CodeDescription
offline_accessMaintain access to data you have given it access to, even when you are offline.
files.readwriteRead and write user files and files shared with the user.
files.readwrite.allRead and write all files that the signed-in user can access.
Sites.ReadWrite.AllGrants an application broad access to SharePoint and OneDrive resources

Sensitive Permissions

Admin permissions are required for the following scopes: 

Scope Code

Description

User.Read.All

Read all users' full profiles.

People.Read.All

Read the profiles of all users in the directory.

User.ReadWrite.All

Read and write all users' full profiles. Allows creating, updating, and deleting user accounts.

Actions

Action NameDescription
Create listCreates a new list via Microsoft Graph API
Create mailCreates a new message via Microsoft Graph API
Create userCreates a new user via Microsoft Graph API
Delete listDeletes a list via Microsoft Graph API
Delete mailDeletes a mail via Microsoft Graph API
Delete mail attachmentDeletes a mail attachment via Microsoft Graph API
Delete userDeletes a user via Microsoft Graph API
Get listGets a list via Microsoft Graph API
Get mailGets a mail via Microsoft Graph API
Get mail attachmentGets mail attachment via Microsoft Graph API
Get userGets a user via Microsoft Graph API
List licenseLists license details of a user via Microsoft Graph API
List listsLists lists via Microsoft Graph API
List mailLists mails via Microsoft Graph API
List userLists users via Microsoft Graph API
Move mailMoves mail via Microsoft Graph API
Send mailSends a mail message via Microsoft Graph API
Update licenseUpdates license via Microsoft Graph API
Update mailUpdates a mail via Microsoft Graph API
Update userUpdates a user via Microsoft Graph API