# Auth0 MFA Require Multi-factor Auth set to ALWAYS from NEVER automatically

**URL:** <https://community.auth0.com/t/auth0-mfa-require-multi-factor-auth-set-to-always-from-never-automatically/183353>\
**Category:** Get Help\
**Tags:** policies-configuration, mfa\
**Created:** [March 5, 2025, 8:00am UTC](https://community.auth0.com/t/auth0-mfa-require-multi-factor-auth-set-to-always-from-never-automatically/183353 "2025-03-05T08:00:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivek.negi1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vivek.negi1/32/61084_2.png) [@vivek.negi1](https://community.auth0.com/u/vivek.negi1)\
**Post date:** [March 5, 2025, 8:00am UTC](https://community.auth0.com/t/auth0-mfa-require-multi-factor-auth-set-to-always-from-never-automatically/183353/1 "2025-03-05T08:00:05Z")

</div>

Ready to post? 🔍 First, try searching for your answer.  
Require Multi-factor Auth - NEVER is Setting to ALWAYS from NO where.  
We are using a post-login trigger to set MFA for a particular organization in our tenant. `exports.onExecutePostLogin = async (event, api) => { if (event.organization && event.organization.metadata && event.organization.metadata["use_mfa"] == 'true') { console.log("MFA enabled for this organization: " + event.organization.display_name); api.multifactor.enable('any', { allowRememberBrowser: false }) } console.log("onExecutePostLogin execution ended."); };`

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [March 5, 2025, 1:53pm UTC](https://community.auth0.com/t/auth0-mfa-require-multi-factor-auth-set-to-always-from-never-automatically/183353/3 "2025-03-05T13:53:32Z")

</div>

Hi @vivek.negi1,

Welcome to the Auth0 Community.

We’re sorry for the inconvenience. Unfortunately the value cannot change automatically. To change the value of Require Multi-factor Auth select the value and then click on Save. In addition, Actions affecting Multi-factor Auth will take precedence over this setting.

If you have any other questions feel free to ask us.

Have a good one,  
Vlad

---

<div class="post-metadata">

**Author:** ![vivek.negi1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vivek.negi1/32/61084_2.png) [@vivek.negi1](https://community.auth0.com/u/vivek.negi1)\
**Post date:** [March 5, 2025, 4:16pm UTC](https://community.auth0.com/t/auth0-mfa-require-multi-factor-auth-set-to-always-from-never-automatically/183353/4 "2025-03-05T16:16:56Z")

</div>

What is the default value of this Require Multi-factor Auth ? I came to know that when ever our auth0 terraform code run it is set to ALWAYS.

We do have a post-login action for this. In that we check if any Organization Metadata have use\_mfa = true. Code belwo

```auto
exports.onExecutePostLogin = async (event, api) => {
    if (event.organization && event.organization.metadata && event.organization.metadata["use_mfa"] == 'true')
			    {
				    console.log("MFA enabled for this organization: " + event.organization.display_name);
				    api.multifactor.enable('any', {
					    allowRememberBrowser: false
				    })
			    } 
	        console.log("onExecutePostLogin execution ended.");
};

```

If this is the case **“Actions affecting Multi-factor Auth will take precedence over this setting.”**  
Why it enabled/Show up MFA for all organizations then?

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [March 5, 2025, 6:39pm UTC](https://community.auth0.com/t/auth0-mfa-require-multi-factor-auth-set-to-always-from-never-automatically/183353/5 "2025-03-05T18:39:54Z")

</div>

By default it’s set to Never. But if you go to your dashboard you should be able to change it.

> **[Enable Multi-Factor Authentication](https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa#enable-mfa-in-the-auth0-dashboard)**
>
> Learn how to enable multi-factor authentication (MFA) in the Auth0 Dashboard.

Make sure you save your settings after changing them.

 ![Screenshot 2025-03-05 at 20.30.07](https://global.discourse-cdn.com/auth0/original/3X/a/b/ab6e2cc086ec0cea8240a22644e7266c21a14340.png)

---

<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:** [March 19, 2025, 6:40pm UTC](https://community.auth0.com/t/auth0-mfa-require-multi-factor-auth-set-to-always-from-never-automatically/183353/6 "2025-03-19T18:40:02Z")

</div>

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