How can i setup MFA with conditional access for Azure AD B2C using custom flows

Tom Loder 20 Reputation points
2025-06-17T09:59:28.4066667+00:00

I ma using Azure AD B2C for authentication for our product, but we need to be able to implement MFA.

I want to be able to do two things:

  1. Include the ability to only require MFA for certain users
  2. Enable the ability to remember the device for x days and this means they won't need to repeat MFA on the same browser for x days.

I have been struggling with the XML in the custom flows, but I cannot work out how to implement the condition access with this. I also am unsure how we can add the ability to remember the device.

Has anyone done this using Custom flows in Azure AD B2C?

Microsoft Security Microsoft Entra Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kancharla Saiteja 5,485 Reputation points Microsoft External Staff Moderator
    2025-06-17T19:01:32.1133333+00:00

    Hi @Tom Loder,

    Based on your query, I understand that you want to set up MFA using conditional access policy for certain users along with 'remember me' option.

    As per your query, here is the Microsoft documentation to configure conditional access policy using custom policies: Add Conditional Access to user flows in Azure Active Directory B2C.

    To add 'remember me' for your sign in of the user, you need to configure "keep me signed-in" page using the following document: Enable Keep me signed in (KMSI). Please go through the entire document and configure the custom policies accordingly.

    I hope this information is helpful. Please feel free to reach out if you have any further questions.

    If the answer is helpful, please click "Accept Answer" and kindly "upvote it". If you have extra questions about this answer, please click "Comment".

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.