# Enforcing adaptive MFA per organisation via post-login action

**URL:** <https://community.auth0.com/t/enforcing-adaptive-mfa-per-organisation-via-post-login-action/188070>\
**Category:** Get Help\
**Tags:** adaptive-mfa, mfa\
**Created:** [June 17, 2025, 11:12am UTC](https://community.auth0.com/t/enforcing-adaptive-mfa-per-organisation-via-post-login-action/188070 "2025-06-17T11:12:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ammo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ammo/32/60168_2.png) [@ammo](https://community.auth0.com/u/ammo)\
**Post date:** [June 17, 2025, 11:12am UTC](https://community.auth0.com/t/enforcing-adaptive-mfa-per-organisation-via-post-login-action/188070/1 "2025-06-17T11:12:52Z")

</div>

Hi, I’m using Auth0 Actions to enforce MFA on a per-organisation basis.

For the “Always” policy, the following Post-Login Action works as expected:

```auto
api.multifactor.enable('any', { allowRememberBrowser: true });

```

What I’d like to do now is enforce an “Adaptive” MFA flow—i.e. let Auth0 evaluate risk signals and only prompt when necessary—but I’m not sure which Action API method to call. I’ve tried `api.authentication.challengeWithAny` and a few variants, but none compile or trigger the adaptive policy.

Can anyone advise how to invoke Adaptive MFA from a post-login action so that it honours my tenant’s risk settings for a given organisation?

Thanks in advance!

---

<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:** [June 17, 2025, 4:20pm UTC](https://community.auth0.com/t/enforcing-adaptive-mfa-per-organisation-via-post-login-action/188070/3 "2025-06-17T16:20:16Z")

</div>

Hi @ammo,

Unfortunately, you can’t dynamically enable Auth0’s Adaptive MFA option from Actions. If you want to enforce an Adaptive MFA flow only on one of your organizations, you would need to create your own custom risk evaluation system that will only take the connections to your organization into account. Otherwise, you would have to use the Auth0 Adaptive MFA system in your whole tenant.

If you have any other questions, feel free to reach out.

Have a good one,  
Vlad

---

<div class="post-metadata">

**Author:** ![ammo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ammo/32/60168_2.png) [@ammo](https://community.auth0.com/u/ammo)\
**Post date:** [June 17, 2025, 4:40pm UTC](https://community.auth0.com/t/enforcing-adaptive-mfa-per-organisation-via-post-login-action/188070/4 "2025-06-17T16:40:44Z")

</div>

Hey Vlad, looking at the docs for [Customize Adaptive MFA](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa/customize-adaptive-mfa#adaptive-mfa), If I use the `confidence` property of the `riskAssessment` do you know if this would match the default implementation of Adaptive MFA.

Also would I have to build out the enrolment process and challenge process aswell or could I use something equivalent to below to handle both?

```auto
api.multifactor.enable('any', { allowRememberBrowser: true });

```

---

<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:** [June 17, 2025, 5:31pm UTC](https://community.auth0.com/t/enforcing-adaptive-mfa-per-organisation-via-post-login-action/188070/5 "2025-06-17T17:31:43Z")

</div>

Hi again @ammo,

You can use this [template](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa/customize-adaptive-mfa#adaptive-mfa-template) to build your own Adaptive MFA system. You will need to manage the assessments separately and also filter out users based on the organization.

Have a good one,  
Vlad

---

<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:** [July 1, 2025, 5:32pm UTC](https://community.auth0.com/t/enforcing-adaptive-mfa-per-organisation-via-post-login-action/188070/6 "2025-07-01T17:32:25Z")

</div>

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