---
title: "Email Setup with Microsoft Graph"
canonical: "https://help.agiloft.com/space/HELP/43719418/Email+Setup+with+Microsoft+Graph"
format: markdown
---
Microsoft Graph offers a method of securely accessing data from Microsoft services. You can configure Agiloft to access your Exchange Online mailboxes using the Microsoft Graph API with OAuth 2.0.

Agiloft supports Microsoft's [client credentials flow](https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow) or [device code flow](https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-device-code) for authorization. Other token grant flows are not supported. We recommend using client credentials flow because it’s the most secure option for enterprise integrations and is preferred for system-to-system communication. Device code flow is designed for user-driven logins on devices without browsers and requires manual authorization steps. In addition, Microsoft’s managed conditional access policies may further restrict the use of device code flow for enterprise applications. For more information, see Microsoft’s [announcement](https://techcommunity.microsoft.com/blog/microsoft-entra-blog/new-microsoft-managed-policies-to-raise-your-identity-security-posture/4286758). 

This section includes separate instructions for each type of token grant flow so you can preview the steps and choose the appropriate method for your organization.

> Macro (children)