<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with search-api]]></title><description><![CDATA[A list of topics that have been tagged with search-api]]></description><link>https://fusionauth.io/community/forum/tags/search-api</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 03:13:48 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/tags/search-api.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[How to find users with email MFA enabled and get count of MFA users?]]></title><description><![CDATA[Finding Users with Email MFA Configured
<p dir="auto">You can search for users with email MFA using the query string pattern in either the Admin UI search bar or via the Search API:</p>
twoFactor.methods.method:email

<p dir="auto">This follows the same pattern used for searching users by any MFA method.</p>
Getting an Accurate Count Efficiently
<p dir="auto">To get a count without retrieving all user records, use the Search API with accurateTotal enabled and a minimal numberOfResults:</p>
{
  "search": {
    "accurateTotal": true,
    "queryString": "twoFactor.methods.method:email",
    "numberOfResults": 1,
    "startRow": 0
  }
}

<p dir="auto">The response will include a total field containing the exact count of matching users.</p>
Last-Used MFA Information
<p dir="auto">Unfortunately, FusionAuth does not store a timestamp for when a user last used their MFA method. However, each MFA method object includes a lastUsed boolean field at users[x].twoFactor.methods[x].lastUsed that indicates which method was most recently used by that user. This is a boolean flag rather than a timestamp, so you can identify which method was used last but not when it was used.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/3317/how-to-find-users-with-email-mfa-enabled-and-get-count-of-mfa-users</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/3317/how-to-find-users-with-email-mfa-enabled-and-get-count-of-mfa-users</guid><dc:creator><![CDATA[FASupportBot]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>