logo
search
MFA Security Issues

How to Bypass MFA for Specific Devices or IP Addresses in Microsoft 365

John WilsonJohn Wilson Oct 22, 2026 868 views

Question details

The user wants to know if Multi-Factor Authentication (MFA) can be bypassed for specific hardware devices, like scanners, using MAC addresses or specific IP addresses.

How to Bypass MFA for Specific Devices or IP Addresses in Microsoft 365
Product
Microsoft 365
Device & OS
not provided
Scenario
Configuring network or device-specific authentication rules for automated devices that cannot perform interactive MFA.
Observed behavior
Microsoft 365 does not provide simple MFA exceptions based on MAC addresses, and applying broad IP-based exclusions can introduce significant security vulnerabilities.
Before you start

Before altering authentication policies, ensure you have Security Administrator or Global Administrator privileges in Microsoft Entra ID. Proceed with caution, as bypassing MFA can expose your tenant to unauthorized access.

Solution 1Recommended

Use Microsoft Entra Conditional Access for Trusted Locations

Create targeted Conditional Access policies to bypass MFA only for specific service accounts operating from designated trusted IP locations.

Microsoft Entra Conditional Access allows you to define trusted locations using external IP addresses. By combining these trusted locations with specific service accounts, you can safely bypass interactive MFA for automated devices like scanners, without compromising your entire tenant's security posture.

1
Define Trusted Locations

Log in to the Microsoft Entra admin center, navigate to Protection > Conditional Access > Named locations, and add your organization's static public IP addresses.

2
Create a New Policy

Go to Conditional Access policies and create a new policy targeting the specific service accounts or workload identities used strictly by your automated devices.

3
Configure MFA Exclusion

Under Conditions > Locations, set the policy to exclude your newly defined 'Trusted Locations'. Under Grant controls, configure it to require MFA for all other locations. Save and enable the policy.

Apply Least Privilege: Ensure the service accounts used for these devices have the absolute minimum permissions required to perform their tasks. It is highly recommended to review your configuration design with a security specialist or in the Microsoft Q&A forum.
Free Microsoft Office alternative

Looking for a Hassle-Free Office Suite? Try WPS Office

If managing complex Microsoft 365 administration and Entra ID MFA configurations is too burdensome for your standard document needs, WPS Office provides a lightweight, easy-to-use alternative. It offers powerful document editing without the heavy IT overhead, saving you time and resources.

  1. 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install the Software: Run the downloaded installer and follow the simple on-screen instructions to set up WPS Office on your computer.
  3. 3. Start Creating: Open WPS Office and instantly begin editing your Word, Excel, and PowerPoint documents with no complex administrative configurations required.
Fully compatible with Microsoft Office formats including .docx, .xlsx, and .pptx.Lightweight application that operates smoothly without complex network or MFA setups for local, offline use.Familiar and intuitive user interface allowing for seamless user migration.Rich built-in PDF editing and collaboration features completely free of charge.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use a MAC address to bypass MFA in Microsoft 365?

No. MAC addresses operate at the local network layer and are generally not available or passed to cloud-based Microsoft Entra Conditional Access policies.

How should I handle MFA for legacy network scanners?

For devices that cannot support interactive MFA, you should use dedicated service accounts with carefully scoped Conditional Access policies that exempt your office's trusted public IP locations.

Does excluding an IP address from MFA weaken security?

Yes, broad IP-based exclusions can weaken your security posture. Exceptions should be tightly restricted to specific service accounts and granted least-privilege permissions to minimize the attack surface.