IAdmResetMfa

The IAdmResetMfa interface is used to reset user's multifactor authentication methods in Microsoft 365, Adaxes web inteface, and password self-service.

Inheritance: IUnknown

All user objects in Adaxes implement the IAdmResetMfa interface. To use this interface, you need to bind to a user object whose multifactor authentication you want to reset.

 How
PowerShell
Import-Module Adaxes

# Connect to the Adaxes service.
$ns = New-Object("Softerra.Adaxes.Adsi.AdmNamespace")
$service = $ns.GetServiceDirectly("localhost")

# Bind to a user.
$userDN = "CN=John Smith,CN=Users,DC=domain,DC=com"
$user = $service.OpenObject("Adaxes://$userDN", $null, $null, 0)

# Reset 'Google Authenticator' and MFA in Microsoft 365.
$apps = @("ADM_TOTPENROLLMENTAPPLICATION_GOOGLE")
$user.ResetMfa($apps, $true)
C#
using System;
using Softerra.Adaxes.Adsi;
using Softerra.Adaxes.Interop.Adsi;
using Softerra.Adaxes.Interop.Adsi.PersistentObjects;

class Program
{
    static void Main(string[] args)
    {
        // Connect to the Adaxes service.
        AdmNamespace ns = new AdmNamespace();
        IAdmService service = ns.GetServiceDirectly("localhost");

        // Bind to a user.
        const string userPath = "Adaxes://CN=John Smith,CN=Users,DC=domain,DC=com";
        IAdmResetMfa user = (IAdmResetMfa)service.OpenObject(userPath, null, null, 0);

        // Reset 'Google Authenticator' and MFA in Microsoft 365.
        ADM_TOTPENROLLMENTAPPLICATION_ENUM[] apps = new [] {
            ADM_TOTPENROLLMENTAPPLICATION_ENUM.ADM_TOTPENROLLMENTAPPLICATION_GOOGLE
        };
        user.ResetMfa(apps, true);
    }
}

Methods

  • Property

  • Description

  • ResetMfa

  • Resets the user's multifactor authentication methods.

Details

ResetMfa

Resets the user's multifactor authentication (MFA) methods. You can reset specific authenticator apps in web interface and password self-service, and reset all strong authentication methods in Microsoft 365.

void ResetMfa(ADM_TOTPENROLLMENTAPPLICATION_ENUM[] adaxesTotpApps, bool resetM365)

Parameters

  • adaxesTotpApps – an array of web interface and password self-service authenticator apps to reset. Specify null to only reset MFA in Microsoft 365.
  • resetM365 – specifies whether to reset multifactor authentication in Microsoft 365.

Remarks

You can use the GetApplicationsUserEnrolledIn method of the IAdmTotpEnrollmentOps interface to find out which authenticator apps are activated by a particular user.


Requirements

Minimum required version: 2026.1

See also