# Custom MFA Rule using use\_mfa

**URL:** <https://community.auth0.com/t/custom-mfa-rule-using-use-mfa/30723>\
**Category:** Get Help\
**Created:** [September 11, 2019, 3:53pm UTC](https://community.auth0.com/t/custom-mfa-rule-using-use-mfa/30723 "2019-09-11T15:53:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scliftas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/scliftas/32/16041_2.png) [@scliftas](https://community.auth0.com/u/scliftas)\
**Post date:** [September 11, 2019, 3:53pm UTC](https://community.auth0.com/t/custom-mfa-rule-using-use-mfa/30723/1 "2019-09-11T15:53:27Z")

</div>

We’ve got a custom rule for controlling conditional MFA on one of our applications. As suggested in this document [here](https://auth0.com/docs/multifactor-authentication/custom), the rule is checking the `user.user_metadata.use_mfa` property.

However, when users actually enable MFA, this property is never set on the user’s metadata, so MFA is never actually enforced on login.

Is this property supposed to be set manually? And if so, how, as at least as far as I can see when a user enables MFA via an enrolment ticket link/email, they are never redirected back to our application, nor is there any callback, so how are we to ever know they have enabled MFA to then set the property?

Any help on this would be much appreciated!

---

<div class="post-metadata">

**Author:** ![joshghent](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joshghent/32/15747_2.png) [@joshghent](https://community.auth0.com/u/joshghent)\
**Post date:** [September 30, 2019, 11:14am UTC](https://community.auth0.com/t/custom-mfa-rule-using-use-mfa/30723/2 "2019-09-30T11:14:30Z")

</div>

I’d also be interested in this if someone could shed some light on it

---

<div class="post-metadata">

**Author:** ![shimon.dahan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shimon.dahan/32/13031_2.png) [@shimon.dahan](https://community.auth0.com/u/shimon.dahan)\
**Post date:** [July 29, 2021, 4:03pm UTC](https://community.auth0.com/t/custom-mfa-rule-using-use-mfa/30723/3 "2021-07-29T16:03:56Z")

</div>

Do you have any solution for this issue?

I know that I am missing something but I dont know what.

thx

---

<div class="post-metadata">

**Author:** ![joseph.puthur](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joseph.puthur/32/33352_2.png) [@joseph.puthur](https://community.auth0.com/u/joseph.puthur)\
**Post date:** [April 11, 2023, 7:32am UTC](https://community.auth0.com/t/custom-mfa-rule-using-use-mfa/30723/4 "2023-04-11T07:32:19Z")

</div>

I am also looking for this feature in Auth0

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 8, 2024, 8:48am UTC](https://community.auth0.com/t/custom-mfa-rule-using-use-mfa/30723/5 "2024-01-08T08:48:38Z")

</div>

Hey there!

As this topic is related to Rules - Hooks - Actions and Rules & Hooks are being deprecated soon I’m excited to let you know about our next [Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team](https://community.auth0.com/t/auth0-community-ask-me-anything-rules-hooks-and-why-actions-matter/124043) on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

[Learn more here!](https://community.auth0.com/t/auth0-community-ask-me-anything-rules-hooks-and-why-actions-matter/124043)
