Entra Documentation for External ID is WILDLY Wrong

Arlo Gilbert 5 Reputation points
2026-02-25T23:17:37.7566667+00:00

https://github.com/MicrosoftDocs/entra-docs/blob/main/docs/external-id/customers/concept-custom-url-domain.md indicates that the x-forwarded-for header provided by Azure Front Door to CIAM Login when using custom domains WILL use the actual user IP address for security decisions.

https://learn.microsoft.com/en-us/entra/external-id/customers/concept-custom-url-domain#considerations-and-limitations is the published version.

Sadly this is 100% untrue. In fact, if you are dumb enough to pay for P1 or P2 in order to use important signals like the risk scores and security scores AND you also care about your brand enough to use a custom domain, EVERYTHING in Entra will action and decide and risk rate based upon the Azure Front Door IP address, NOT the client_ip that AFD receives.

Why would anybody WANT conditional access policies and risk ratings and other important security decisions made based upon one of a few dozen IPs that are owned by Microsoft.

Up there with one of the single dumbest and worst decisions I've ever seen in the IDP space. If you can't support custom domains with all capabilities then DONT ENABLE CUSTOM DOMAINS AS AN OPTION MICROSOFT!

We've spoken with Microsoft Support who supposedly escalated to the engineering team and told us:

What we confirmed internally

Our internal specialists have validated that when using custom domains routed through Azure Front Door, Entra External ID currently logs the IP address that reaches the Microsoft identity edge—which is the AFD IP—rather than the end‑user’s original IP. This happens because:

  • Conditional Access “Network/Location” signals are based on the public IP that reaches Entra, not on forwarded headers such as X-Forwarded-For. This is by design to prevent spoofing.  
  • Azure Front Door does forward the real client IP, but only as HTTP headers such as X-Azure-ClientIP and X-Forwarded-For, which are available to your backend applications, not to Entra’s Conditional Access or sign‑in log engine.
Azure Front Door
Azure Front Door

An Azure service that provides a cloud content delivery network with threat protection.


1 answer

Sort by: Newest
  1. Arlo Gilbert 5 Reputation points
    2026-03-09T18:28:18.31+00:00

    Congrats, you've successfully read my message.

    What you have not done is reviewed the documentation. The documentation says THE OPPOSITE OF WHAT YOU ARE SAYING.

    Meaning, other suckers are going to trust the documentation. They should not because the documentation is WRONG.

    Was this answer helpful?

    0 comments No comments

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.