You are here:
Implement a Custom MFA Process with Apex (Salesforce Orgs)
To implement your own multi-factor authentication (MFA) process, use Apex methods under
the System.UserManagement class. The methods come as a
pair for the Salesforce Authenticator and phone (SMS) identity verification methods — one
to initiate a verification service, and one to complete the verification service. For password
or time-based one-time password (TOTP) verification methods, you can use the second method alone
to provide a complete verification service. Use of SMS for MFA is supported only for external
users accessing your company’s Experience Cloud sites, employee communities, and other types of
community portals.

