How to get ipv6 address from optional claim in access token

Manjeera Tanneeru 20 Reputation points Microsoft Employee
2024-06-05T05:27:14.0333333+00:00

How to get ipv6 address from optional claim in access token/id token after authenticating with MSAL? The "ipaddr" always gives IPv4 address. "https://learn.microsoft.com/en-us/entra/identity-platform/optional-claims-reference"

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,048 questions
0 comments No comments
{count} votes

Accepted answer
  1. Givary-MSFT 29,171 Reputation points Microsoft Employee
    2024-06-05T12:02:10.4866667+00:00

    @Manjeera Tanneeru Thank you for reaching out to us, ipaddr claim shows the IP address (as ipv6) if you have logged into Entra ID using IPv6 network connection. Below is the reference screenshot

    User's image

    Let me know if you have any further questions, feel free to post back.

    Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful