Hi there. We have a use case where we need to enable MFA only for a set of users. We are not giving any option on UI for a user to enroll for MFA. Rather, we want to do this automatically in a rule where we decide if a particular user belongs to the set of users (who has MFA enabled). So our approach is like:
- Create a rule.
- Inside the rule, fetch the user metadata having a key like useMFA.
- if useMFA is true, prompt user for MFA enrollment else
- return the user profile.
The main issue is here we don’t know how to prompt the user for enrollment in a rule.
Any suggestions would be helpful.