Azure AD B2C- sign-in workflow with google as an IdP-error AADB2C99002

shital.lawhale 31 Reputation points
2022-06-16T09:14:48.627+00:00

Hi everyone,

I am writing here the issue that I am facing while working on sign-in workflow with Azure AD B2C. Your help is appreciated.

Pre-requisites:
I have Azure AD B2c tenant. I want to set up sign-in workflow with google as an IdP.
I have set up user flow for google .

Actual output:
When user tries to access the application then navigated to authentication from google - as expected.
once authenticated then error shows as "AADB2C99002: User does not exist. Please sign up before you can sign in."

I tried to create consumer user with google as identity via APIs and user is created but still it gives error as "AADB2C99002: User does not exist. Please sign up before you can sign in."

Questions:

  • How to create user in Azure AD B2C which will resolve error AADB2C99002 for sign-in workflow? - I don't want to invite user to not to give access to Azure.
  • How to work with the scenario where only sign-in workflow is needed and authentication is done by external IdP? How to create user with google as issuer and which works with sign-in workflow?

Thanks in advance,

Shital

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,650 questions
{count} votes

Accepted answer
  1. 2022-06-17T02:36:09.84+00:00

    Hello @shitallawhale-8639, the error AADB2C99002 is being thrown due your google user/identity lacking a matching backing Azure AD B2C user. Remove the user account created via the API and sign-in again. The backing Azure AD B2C user will get automatically created.

    If you want to create federated users programmatically, please follow Example 2: Create a user with social and local account identities.

    Let us know if this answer was helpful to you or if you need additional assistance. If it was helpful, please remember to accept it so that others in the community with similar questions can more easily find a solution.


0 additional answers

Sort by: Most helpful