How to configure the work and school email for login and signup

Darshan Patel 0 Reputation points
2023-11-20T14:28:46.8266667+00:00

I have created one Azure AD B2C and created one App registrations and in Authentication

I selected this option Accounts in any identity provider or organizational directory (for authenticating users with user flows) in Supported account types.
Also I have created one user flow and Identity providers with the Microsoft account.

I run the user flow and showing the Microsoft login page and I enter the gmail.com related emails so I have successfully login but When I try to login with the work email that time showing the error like: That Microsoft account doesn't exist. Enter a different account

But I want the user login with the organization email and add that user into the Azure AD B2C user section. I need the Register with AD, login with AD.  and it can't be with a personal email.

Microsoft Entra
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 36,821 Reputation points Microsoft Employee
    2023-11-22T00:11:08.93+00:00

    @Darshan Patel ,

    B2C lacks native support for work accounts from Microsoft Entra (AAD). One option for you would be to add Microsoft Entra ID/Azure AD as an identity provider by creating a tenant and configuring it as an identity provider in your B2C tenant. You can use Custom Policies to enable sign-in for users from a specific tenant (Azure AD). You can refer to this guide to set this up.

    You can add local accounts in B2C as an IDP, which will allow users in your tenant to sign into apps.

    https://learn.microsoft.com/en-us/azure/active-directory-b2c/faq?tabs=app-reg-ga

    Let me know if this helps and if you have further questions.

    Here are some additional resources:

    https://stackoverflow.com/questions/49133390/can-azure-ad-work-accounts-be-used-with-azure-b2c-is-that-a-bad-idea

    https://stackoverflow.com/questions/40990564/sign-in-to-b2c-using-either-personal-or-work-or-school-email-address

    You can also leave feedback to enhance the out-of-the-box functionality so that the product team can respond directly here: https://feedback.azure.com/

    If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar questions.


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.