How to exclude mfa for a particular set of users

Hi Team,

I wanted to exclude adaptive MFA rule for users with email (test.e2e**@**) . I have given the below rule but still its prompting MFA for email verification. How can i test the same

if (user.email.includes(’.e2e’)) {
callback(null, user, context);
}

Thanks,
Shilpa

Hi @shilpa.kumar

We need more details. One question in particular: is your MFA setting for Always, Never or Adaptive? We would also need the full rule.

John

Hi John,

Its adaptive mfa. and enforcing mfa only from second time of user login and if any confidence score is low or medium.
Sample email is “shilpa.e2e+12@gmail.com

Thanks,
Shilpa

Ah sorry, I was misreading your question. I still need the rule. Did you follow this blog":https://auth0.com/blog/auth0-introduces-adaptive-mfa/

John