# MFA Post Login Action - api.authentication.enrollWith

**URL:** <https://community.auth0.com/t/mfa-post-login-action-api-authentication-enrollwith/126763>\
**Category:** Get Help\
**Tags:** mfa-api, mfa\
**Created:** [February 7, 2024, 4:09pm UTC](https://community.auth0.com/t/mfa-post-login-action-api-authentication-enrollwith/126763 "2024-02-07T16:09:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafael4](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rafael4/32/60772_2.png) [@rafael4](https://community.auth0.com/u/rafael4)\
**Post date:** [February 7, 2024, 4:09pm UTC](https://community.auth0.com/t/mfa-post-login-action-api-authentication-enrollwith/126763/1 "2024-02-07T16:09:47Z")

</div>

I am trying to enroll mfa to my users ([Customize MFA Enrollments in New Universal Login](https://auth0.com/docs/secure/multi-factor-authentication/customize-mfa-enrollments))

The documentation says to use api.authentication.enrollWithAny

 ![image](https://global.discourse-cdn.com/auth0/original/3X/b/4/b49e971b66b502edd13d6d714a42f358d77c991f.png)

But enrollWithAny does not exists  
Is the documentation deprecated?

How can i enroll mfa in post login action?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 7, 2024, 7:40pm UTC](https://community.auth0.com/t/mfa-post-login-action-api-authentication-enrollwith/126763/3 "2024-02-07T19:40:09Z")

</div>

Hi @rafael4,

The documentation is correct, and the `api.authentication.enrollWithAny` command is legitimate.

When testing this on my end, I was able to successfully execute the code even though I do see the same problem as you:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/d/3/d329b5a34d4b0cb004a18db81b6e26564b5e34d9.png)

Given that, I can confirm that you can use the `api.authentication.enrollWithAny` command without issues and I will notify our Engineering team to address this contradictory error.

Let me know if you have any additional questions.

Thanks,  
Rueben

---

<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:** [February 21, 2024, 7:40pm UTC](https://community.auth0.com/t/mfa-post-login-action-api-authentication-enrollwith/126763/4 "2024-02-21T19:40:12Z")

</div>

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