How to List Users With MFA Enrollments

Overview

This article explains how to retrieve a list of all users and their corresponding Multi-Factor Authentication (MFA) enrollments by using the Management API.

Applies To
  • Multi-Factor Authentication (MFA)
  • Management API
Solution

To obtain a list of users and their MFA enrollment status, use the Management API.

  1. Retrieve the first user enrollment by calling the GET /api/v2/users/{id}/enrollments endpoint. This action must be performed for each user_id.

  2. The API response contains the MFA enrollment information for the specified user. By default, phone numbers in the response are obfuscated.

  3. To view the complete, unobfuscated phone numbers, navigate to the tenant settings and set the disable_management_api_sms_obfuscation flag to true.

{
  "flags": {
    "disable_management_api_sms_obfuscation": true
  }
}

    Recommended content

    No recommended content found...