1

I want to run a SOQL query on this object TwoFactorMethodsInfo. Yet by some reason it is not supported:

enter image description here

This documentation references it https://developer.salesforce.com/docs/atlas.en-us.externalidentityImplGuide.meta/externalidentityImplGuide/external_identity_passwordless_login_in_apex.htm

So why it is not supported?

3
  • 1
    Have you enabled 2FA? You can't typically query an object if its related feature is not enabled.
    – sfdcfox
    Dec 3, 2019 at 17:44
  • No, I haven't. As long as I understand it correctly, 2FA can be enabled through permissions or profile settings by the admin. Or is there a switch that turns on 2FA as a feature which then can be used on profiles?
    – Eduard
    Dec 3, 2019 at 21:53
  • 1
    This object seems to work only in context of Apex (not even in anonymous window). As an example I tried this query in a test class and was able to save and run it.
    – Jayant Das
    Dec 3, 2019 at 23:36

1 Answer 1

2

You need the Manage Multi-Factor Authentication in API permission to access this object. (Note that multi-factor authentication was formerly called two-factor authentication.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .