Supported Calls
describeSObjects(), query()
Special Access Rules
You need the Manage MFA in API user permission to access this object. Note that multi-factor authentication (MFA) was formerly called two-factor authentication.
If you try to use Apex DML operations and then query this object in the same call, you get an UncommittedWork error with this description.
A callout was unsuccessful because of pending uncommitted work related to a process, flow, or Apex operation. Commit or roll back the work, and then try again.
To avoid this error, execute DML operations and queries in separate, asynchronous calls.
Fields
| Field Name | Details |
|---|---|
| ExternalId |
|
| HasBuiltInAuthenticator |
|
| HasSalesforceAuthenticator |
|
| HasSecurityKey |
|
| HasTempCode |
|
| HasTotp |
|
| HasU2F |
|
| HasUserVerifiedEmailAddress |
|
| HasUserVerifiedMobileNumber |
|
| HasVerifiedMobileNumber |
|
| UserId |
|
Usage
In API version 34.0 and later, this object was enhanced to help manage high instance counts. A query() call returns up to 500 rows. A queryMore()call returns 500 more, up to 2,500 total. No more records are returned after 2,500.
- Divide queries by filtering on fields like UserId to return subsets of less than 2,500 records.
- Use OFFSET to get batches of 2,000 records. Start with
an OFFSET of 0 and then increment by
2,000. If you use this option, we recommend that you also use LIMIT to limit each query to 2,000.
For example, use an initial query with this structure.
SELECT <desired fields> FROM TwoFactorMethodsInfo LIMIT 2000 OFFSET 0
Then, run another query with an offset of 2,000.
Continue to increase the offset by 2,000 until you have results for all records.SELECT <desired fields> FROM TwoFactorMethodsInfo LIMIT 2000 OFFSET 2000