Skipping MFA for Office 365 Account in Logic App Email Action

Sowjanya Mandalapu 0 Reputation points
2025-06-17T15:44:09.1066667+00:00

Hello,

I am seeking guidance on configuring an Azure Logic App to send emails using an Office 365 account without triggering Multi-Factor Authentication (MFA). Our current setup enforces MFA for this account, which is interfering with automated workflows in the Logic App.

We understand the importance of MFA for security, but in this specific case, we are looking for a secure and supported method to bypass MFA for this automation scenario. We have explored several options, including:

Using service accounts with conditional access exclusions

Attempting to disable MFA via the Microsoft 365 Admin Center

Reviewing managed identity options for Logic Apps

However, none have successfully allowed the Logic App to send emails without MFA prompts.

Could you please advise on:

Whether it is possible to bypass MFA for a Logic App using an Office 365 connector.

If so, what are the recommended steps or configurations (e.g., using managed identities, app registrations, or conditional access policies)?

Any official documentation or best practices for securely enabling this scenario.

We would greatly appreciate any insights, examples, or references to Microsoft Learn or TechCommunity articles that could help us implement this correctly.

Thank you in advance!

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,562 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Khadeer Ali 5,990 Reputation points Microsoft External Staff Moderator
    2025-06-17T16:13:13.6233333+00:00

    @Sowjanya Mandalapu ,

    Thanks for your query.

    To securely send emails from an Azure Logic App using an Office 365 account without triggering MFA, once try this approach: use Azure AD App Registration with Microsoft Graph API and the client credentials flow.

    This method is designed for automation scenarios and works without MFA, as it uses application identity (not a user identity) for authentication.

    Summary of Steps:

    1. Register an App in Azure AD
    2. Grant Application Permission: Mail.Send in Microsoft Graph
    3. Create a client secret or certificate
    4. Use Logic App HTTP action to:
    • Fetch a token from Azure AD
    • Call the Graph API sendMail endpoint

    This avoids MFA entirely and is Microsoft’s recommended pattern for service-to-service communication.

    Send Mail using Graph API

    Client Credentials Flow (No MFA)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.