How to Bypass MFA for Specific Devices or IP Addresses in Microsoft 365
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.

- 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 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.
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.
Log in to the Microsoft Entra admin center, navigate to Protection > Conditional Access > Named locations, and add your organization's static public IP addresses.
Go to Conditional Access policies and create a new policy targeting the specific service accounts or workload identities used strictly by your automated devices.
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.
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. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install the Software: Run the downloaded installer and follow the simple on-screen instructions to set up WPS Office on your computer.
- 3. Start Creating: Open WPS Office and instantly begin editing your Word, Excel, and PowerPoint documents with no complex administrative configurations required.

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.




