We have users enrolled in multi-factor authentication (MFA). I need to know verified authentication methods (email, phone number, ...) for each user. I tried retrieving the info via REST API:
/query/?q=SELECT+UserId+,+User.Username+,+HasUserVerifiedMobileNumber+,+HasUserVerifiedEmailAddress+,+HasSalesforceAuthenticator+,+HasTotp+,+HasU2F+from+TwoFactorMethodsInfo
Response:
[
{
"message": "sObject type 'TwoFactorMethodsInfo' is not supported.",
"errorCode": "INVALID_TYPE"
}
]
How do I do this?