# Skip MFA enrollment page in classic universal login

**URL:** <https://community.auth0.com/t/skip-mfa-enrollment-page-in-classic-universal-login/118591>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [October 16, 2023, 3:17am UTC](https://community.auth0.com/t/skip-mfa-enrollment-page-in-classic-universal-login/118591 "2023-10-16T03:17:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![antomi](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@antomi](https://community.auth0.com/u/antomi)\
**Post date:** [October 16, 2023, 3:17am UTC](https://community.auth0.com/t/skip-mfa-enrollment-page-in-classic-universal-login/118591/1 "2023-10-16T03:17:54Z")

</div>

I do not want the users to be prompted for enrolling in MFA. Rather I want them to be auto enrolled using the phone number available in the user\_profile.

I tried to create a custom action to do this after login using the mfa/associate api. This however needs a mfa\_token to go through.  
I did call /oauth/token, but it gives just the error 403-MFA required. But I am not able to extract the mfa\_token from the error.

Is there any way to auto enroll the users for MFA(SMS) using the number in the userprofile/custom database

---

<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:** [October 20, 2023, 6:41pm UTC](https://community.auth0.com/t/skip-mfa-enrollment-page-in-classic-universal-login/118591/3 "2023-10-20T18:41:36Z")

</div>

Hi @antomi,

Welcome to the Auth0 Community!

You should be able to create a new, verified enrollment with the `POST /api/v2/users/{id}/authentication-methods` endpoint: [Auth0 Management API v2](https://auth0.com/docs/api/management/v2/users/post-authentication-methods).

Hope that helps!

---

<div class="post-metadata">

**Author:** ![antomi](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@antomi](https://community.auth0.com/u/antomi)\
**Post date:** [October 26, 2023, 3:53am UTC](https://community.auth0.com/t/skip-mfa-enrollment-page-in-classic-universal-login/118591/5 "2023-10-26T03:53:05Z")

</div>

Thanks. this works and I am able to see the enrolled factors

---

<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:** [October 26, 2023, 3:12pm UTC](https://community.auth0.com/t/skip-mfa-enrollment-page-in-classic-universal-login/118591/6 "2023-10-26T15:12:35Z")

</div>

Great, thanks for the update.

---

<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 9, 2023, 3:13pm UTC](https://community.auth0.com/t/skip-mfa-enrollment-page-in-classic-universal-login/118591/7 "2023-11-09T15:13:07Z")

</div>

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