MFA looping on Account Verification Code for Entra External ID Conditional Access triggered resource for Invited External User

Kevin Russell 20 Reputation points
2025-09-12T07:24:06.1466667+00:00

No Microsoft Organisational Users can access out custom web application that is secured using Microsoft Entra External ID. We have a Conditional Access policy in place that applies MFA for everyone that accesses the web application. When externally invited users access the web application they are first asked to enter their password, then they are given the option to have a verification code send to their email address. Once they select this option, and apply the verification code to the Microsoft dialog text field it gets verified and the option to option to have a verification code send to the email address reappears. This occurs indefinitely!

I would be greatly for any assistance

Thanks

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments

Answer accepted by question author
Sreetheja Adusumilli 965 Reputation points Microsoft External Staff Moderator
2025-09-28T05:09:49.5633333+00:00

Hello Kevin Russell,

Thanks for posting your question in Microsoft Q&A!

Sometimes, when users from other organizations (who are guests in your Entra External ID tenant) sign in to your app, they get stuck in a loop. They enter a verification code sent to their email, but after entering it, the same prompt to enter another code just keeps coming back.

This happens mainly because of how MFA trust is set up between different organizations:

  • Your tenant currently does not trust the MFA methods that external users have already set up in their own home tenants.
  • Instead, the system makes these users register or verify MFA again in your tenant every time they sign in.
  • This can cause an endless cycle, especially if the verification method is email one-time passcode (OTP), which doesn’t work well as an MFA method for these guests.

To Mitigate the Issue:

  • Enable MFA Trust Between Tenants: In your Entra Admin Center, go to External Identities > Cross-tenant access settings and configure the trust so that your tenant accepts the MFA done by external users in their home tenants. This stops the need for them to verify MFA again and again.
  • Modify Conditional Access Settings: Review your Conditional Access policies to make sure they don’t enforce MFA in a way that conflicts with external user sessions. Also, tweak session lifetime and sign-in frequency settings for smoother access.
  • Use Supported MFA Methods: Switch from relying on email verification codes (Email OTP) as an MFA method. Instead, use Microsoft Authenticator or phone-based methods (SMS or phone call), which have better support for guests.
  • Reset MFA for Affected Users: For users stuck in the loop, you (or they) can reset their MFA settings in your tenant so they can register supported methods properly.
  • Check External Collaboration Settings: Make sure your guest user access settings and domain policies allow external users to authenticate without unnecessary restrictions.

Recommended Configuration:

  • Enable MFA trust for known partner organizations
  • Use Microsoft Authenticator as primary MFA method for external users
  • Configure SMS/Phone call as backup methods
  • Avoid Email OTP for MFA (use only for password reset)

Session Management Best Practices:

  • Set reasonable sign-in frequency (e.g., 8 hours for sensitive apps)
  • Configure persistent browser sessions appropriately
  • Monitor Conditional Access insights for policy effectiveness

Testing and Validation Test Scenario 1: MFA Trust Validation

  • Have an external user sign in to their home tenant first
  • Complete MFA in their home tenant
  • Then attempt to access your application
  • They should NOT be prompted for additional MFA if trust is configured correctly

Test Scenario 2: Authentication Method Verification

  • Verify users can register Microsoft Authenticator or phone-based methods
  • Confirm Email OTP is not being used as the primary MFA method
  • Test the complete sign-in flow end-to-end

Microsoft Reference Documents:

Kindly let us know if the above helps or you need further assistance on this issue.

If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

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