Microsoft Graph is the mechanism by which you access APIs for the majority of Microsoft services, which you'll use as steps in your workflows.
To use Microsoft steps in your workflows, register a new app in Entra ID (formerly Azure AD), add Microsoft Graph permissions to the app, and grant admin consent. After you register the app, you'll create your integrations in Torq.
Configure Microsoft Graph in the Azure Portal
Register a New App
Log in to your Azure Portal.
Select App registrations > New registration.
Enter a meaningful name for the app.
Select the required supported account types. For more information, click Help Me Choose.
You don't have to use the Redirect URI option.
Click Register.
Add API Permissions
Select API permissions > Add a permission > Microsoft Graph.
Click Application Permissions and select the permissions required for the Microsoft services you want to use in your Torq workflows.
Click Add Permissions.
It is recommended that you add at least the following permissions:
Mail.Read
Mail.ReadBasic
Mail.ReadBasic.All
Mail.ReadWrite
Mail.Send
MailboxSettings.Read
MailboxSettings.ReadWrite
User.Read
Click Grant admin consent for {organization name}.
Create a Client Secret
Copy the client secret value and store it in a safe place. You might not be able to access it again. You need the client secret when configuring a Microsoft 365 integration in Torq.
From the left panel, click Certificates & secrets.
Click New client secret.
Configure the client's secret.
Enter a meaningful description.
Set the expiration date for the client secret. It is recommended that you use a custom date in the extended future (but in compliance with your organization's policies).
Click Add.
Copy the App IDs
To create a Microsoft 365 integration in Torq, you'll need several IDs and the client secret. Click Overview to view the Application (client) ID and Directory (tenant) ID.
Create a Microsoft 365 Integration in Torq
Microsoft 365 Defender and Microsoft Defender for Endpoint have a dedicated step Create session that generates the access token required by their integration steps.
Perform these steps in Torq.
Go to Build > Integrations > Steps > Microsoft 365, and click Add.
Enter a meaningful name for the integration.
Enter the Tenant ID, Client ID, and Secret Value.
Click Add.