How can we display the actual end user IP addresses for B2C users instead of Microsoft IP addresses?

Daniel-4204 105 Reputation points
2024-07-31T14:22:03.0333333+00:00

We use Azure B2C for our App. How can we display the actual end user IP addresses for B2C users instead of Microsoft IP addresses? While it does show the actual IP for admin users who sign in to the Azure portal to look at logs and reset customer passwords, etc... The IP addresses for all of the customer's who use our application show as Microsoft IP's instead of their own.image

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 27,221 Reputation points Microsoft Employee Moderator
    2024-07-31T21:32:24.4066667+00:00

    Hi @Daniel-4204 , unfortunately I don't believe this is possible. From this thread: "To display the IP address is a bit to rely on the networking environment where your VMs. From the Sign-in activity reports in the Azure Active Directory portal, currently Azure tries best effort to convert the IP address to a physical location where the computer located as mapping IP addresses is complicated by the fact that mobile providers and VPNs issue IP addresses from central pools that are often very far from where the client device is actually used."

    I would try checking the audit logs in the B2C blade. If the activity is based on custom policy user log in, the IP address should be there.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James


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.