Tracking MFA Adoption Metrics in FusionAuth Cloud
-
Is there a way to retrieve user metrics from FusionAuth Cloud? Specifically, I’m looking for insights for our product team regarding MFA adoption, such as:
- The number of users with a configured MFA method.
- The number of new MFA setups per day.
-
FusionAuth Cloud does not currently provide built-in analytics for MFA adoption. However, you can gather this data using the following approaches:
- Retrieve Users with MFA Enabled
- Use the User Search API to retrieve all users for a specific application with MFA enabled.
- Here’s a sample queryString to retrieve all the users with an MFA configuration field. It may be empty, so you should check after retrieving them:
_exists_:twoFactor
- Reference: Get All Users for an Application
- You should be able to combine these two queries to get what you want.
- Track New MFA Setups Per Day
- Set up a Webhook to listen for the user.two-factor.method.add event.
- This event fires when a user adds a new two-factor authentication method.
- Your backend can record these events daily for reporting purposes.
- Webhook Guide: Writing a Webhook
-