How to enforce a single MFA for a user

Hi @rajivk,

Thank you for your clarification.

If SMS and OTP are both enabled for the user, then it is normal to see a message indicating that the user is already enrolled in those factors. Therefore, calling the /mfa/associate endpoint for that user is not needed since they have already enrolled in both SMS and OTP MFA factors.

At this point, you can proceed by calling the /mfa/challenge endpoint for OTP/SMS generation, and verify MFA for OTP/SMS by calling the /oauth/token endpoint.

You should be able to configure more than one MFA factor for a user at a time. Our Enable Multi-Factor Authentication documentation explains that:

“In the Factors section, choose the factors that you want to enable with toggles. Any or all of these factors can be enabled simultaneously.”

Please see these resources on enrolling SMS and OTP MFA:

Thank you.