
DhaivatP.50964 (Customer) asked a question.
Hello i have recently created an application in okta which uses okta's hosted sign in page to get the users signed in to the application. I have also implemented the factors api to enroll users for mfa. Thus when users initally login the mfa is disabled. Now, i want to set up an policy where the hosted sign in page challenges the user only if he has enrolled in an MFA.

Hello Dhaivat,
Have you tried setting the MFA as optional, and creating a rule to not automatically prompt for MFA enrollment?
From the Admin Portal, go to Security, and and select Multifactor. From there, select the Factor Enrollment tab, and select your Multifactor Policy. If you do not have one, you'll need to create one, and assign it to a group. Set the factor as optional. At the bottom click on Add Rule, give the rule a name, and then in the bottom drop-down box, select Do Not Enroll.
Let me know if this helps!
Tim
Okta, Inc.
Thanks @tim.lopez1.5480328098306519E12 (Okta, Inc.) but it doesnt work. It doest ask mfa for user who already have enrolled for it.