# Undefined phone\_number in event.user.phone\_number

**URL:** <https://community.auth0.com/t/undefined-phone-number-in-event-user-phone-number/93564>\
**Category:** Get Help\
**Tags:** actions\
**Created:** [November 2, 2022, 1:57pm UTC](https://community.auth0.com/t/undefined-phone-number-in-event-user-phone-number/93564 "2022-11-02T13:57:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spoudel](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/spoudel/32/51376_2.png) [@spoudel](https://community.auth0.com/u/spoudel)\
**Post date:** [November 2, 2022, 1:57pm UTC](https://community.auth0.com/t/undefined-phone-number-in-event-user-phone-number/93564/1 "2022-11-02T13:57:14Z")

</div>

event.user.phone\_number is undefined for users enrolled in MFA with phone. Im trying to add phone number in id token from auth0 post login action.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 7, 2022, 8:16pm UTC](https://community.auth0.com/t/undefined-phone-number-in-event-user-phone-number/93564/3 "2022-11-07T20:16:18Z")

</div>

Hi @spoudel,

Welcome to the Auth0 Community!

Have you seen this FAQ?

> [@How to Get Country Code and Phone Number During MFA Enrollment](https://community.auth0.com/t/how-to-get-country-code-and-phone-number-during-mfa-enrollment/85325):
>
> Problem Statement: How to get the country code and phone number during MFA enrollment. Solution: Here are the steps and sample scripts: 1.Disable the phone number obfuscation by sending the following body to the [/api/v2/tenants/settings](https://auth0.com/docs/api/management/v2#!/Tenants/patch_settings) endpoint: { "flags":{ "disable\_management\_api\_sms\_obfuscation":true } } If true, SMS phone numbers will not be obfuscated in Management API GET calls. 2.Write a rule to call [/api/v2/guardian/enrollments/{id}](https://auth0.com/docs/api/management/v2#!/Guardian/get_enrollments_by_id) endpoint and retrieve M…

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 28, 2022, 8:56pm UTC](https://community.auth0.com/t/undefined-phone-number-in-event-user-phone-number/93564/4 "2022-11-28T20:56:54Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
