Azure AD B2C - IEF Custom User Flows - How to check User exist as a step before sending email verification on Sign UP Page

Harjani, Ashish 201 Reputation points

Hi ,

The default behavior for SIGN UP page is that once user selects that , it asks for Email Verification , and once done then asks for Password set up. But if the user already exists in active directory , it prompts that message as a last step. Instead we want to check if the user already exists and giving error message as a step before asking for any email verification. That way users don't have to do any further steps if they already exist. Would appreciate the help on how to do this !

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,678 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 22,351 Reputation points Microsoft Employee

    Hi @Harjani, Ashish , this thread goes into detail on how you accomplish this using the Graph API. Please let me know if this works for you or if you have any questions with it.

    For example, this query will return the usernames of your search:

    `$filter=signInNames/any(x:x/value eq 'someone')&api-version=1.6`  

    If this answer helped you please mark it as "Verified" so other users can reference it.

    Thank you,