# MFA disabling for respective users

**URL:** <https://community.auth0.com/t/mfa-disabling-for-respective-users/86889>\
**Category:** Get Help\
**Tags:** login, auth0\
**Created:** [July 13, 2022, 11:52am UTC](https://community.auth0.com/t/mfa-disabling-for-respective-users/86889 "2022-07-13T11:52:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shailesh.s](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shailesh.s/32/33837_2.png) [@shailesh.s](https://community.auth0.com/u/shailesh.s)\
**Post date:** [July 13, 2022, 11:52am UTC](https://community.auth0.com/t/mfa-disabling-for-respective-users/86889/1 "2022-07-13T11:52:31Z")

</div>

Dear All,

I have searched enough in auth0 community threads related to disabling MFA for particular user but enabled for other users.  
I referred to this thread [How to disable mfa for a particular user - #4 by chigullap](https://community.auth0.com/t/how-to-disable-mfa-for-a-particular-user/53544/4) but of no luck.

In my application; we enable MFA not from the Tenants Dashboard setting; rather via URL arguments to auth0 when user enters username and password.

The argument we pass is acr\_values=‘aal2’ this argument automatically enables MFA prompt (SMS based) dialog for user to enter code.

Even though i have created a Rule and added the code as mentioned in thread said above; my application when logging by specific user is prompting for the MFA dialog.

In the Logs; i get error “Failed Silent Auth” with content as shown:

```auto
{
  "date": "2022-07-13T11:35:53.943Z",
  "type": "fsa",
  "description": "Login required",
  "client_id": "xxxxxxxxz2qhHMGZxxxxxxxxxxxx",
  "client_name": "xx-xx-Web-App",
  "ip": "165.225.122.229",
  "user_agent": "Chrome 103.0.0 / Windows 10.0.0",
  "details": {
    "body": {},
    "qs": {
      "redirect_uri": "https://app.azurewebsites.net/dashboard",
      "client_id": "xxxxxxxxz2qhHMGZxxxxxxxxxxxx",
      "connection": "main-tenant-oidc",
      "scope": "openid profile email offline_access",
      "audience": "https://xxx.abc.com",
      "acr_values": "aal2",
      "response_type": "code",
      "response_mode": "web_message",
      "state": "eUI1U1RQYX41czNMTXNoxxxxx",
      "nonce": "MUc4QkswWVdMfmN0Nxxxx",
      "code_challenge": "paVzzjEtSpkm9N7ZgyJ7gxxxxxxxxxx",
      "code_challenge_method": "S256",
      "prompt": "none",
      "auth0Client": "eyJuYW1lIjoiQGF1dGgwL2F1dGgwLWFuZxxxxxx"
    },
    "connection": null,
    "error": {
      "message": "Login required",
      "oauthError": "login_required",
      "type": "oauth-authorization"
    },
    "riskAssessment": null
  },
  "hostname": "xxxx.auth0.com",
  "audience": "https://xxx.api.xxx.com",
  "scope": [
    "openid",
    "profile",
    "email",
    "offline_access"
  ],
  "auth0_client": {
    "name": "@auth0/auth0-angular",
    "version": "1.9.0"
  },
  "log_id": "90020220713113554103135163004995678475438",
  "_id": "9002022071311355410313516300499567847543852",
  "isMobile": false,
  "id": "90020220713113554103135163004995678475438522"
}

```

So what else to do in order to disable MFA for particular user?

Thanks for all help

---

<div class="post-metadata">

**Author:** ![emiel](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/emiel/32/33674_2.png) [@emiel](https://community.auth0.com/u/emiel)\
**Post date:** [April 18, 2023, 9:02am UTC](https://community.auth0.com/t/mfa-disabling-for-respective-users/86889/2 "2023-04-18T09:02:22Z")

</div>

Hi @shailesh.s

We use a Rule for this (Auth Pipeline, Rules) where we check for a specific property in the user’s metadata.

Add the following code to the rule

```auto
  // Disable MFA for users that have user_metadata.disable_mfa = true specified
  if (user.user_metadata && user.user_metadata.disable_mfa)
  {
    return callback(null, user, context);
  }

```

Then open the details of the user for which MFA needs to be disabled and scroll down to **Metadata** and add the following to **user\_metadata** :

```auto
{
  "disable_mfa": true
}

```

---

<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:** [November 26, 2024, 11:56pm UTC](https://community.auth0.com/t/mfa-disabling-for-respective-users/86889/3 "2024-11-26T23:56:41Z")

</div>

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