Hi @Kevin Dule
Thank you for reaching us!
If understand correctly that you are trying to authenticate users from Entra ID tenant in Azure AD B2C tenant.
Let me explain your scenario, you have set up Azure AD B2C in company B's tenant to authenticate users from company A's Entra ID. The error "AADB2C99002: User does not exist. Please sign up before you can sign in" occurs when the user is not found in the Azure AD B2C directory.
To resolve this issue, you need to configure Azure AD B2C to use company A's Entra ID as an identity provider. This way, users from company A can authenticate using their Entra ID credentials, and Azure AD B2C will not look for them in company B's directory. Here are the steps to configure Entra ID as an identity provider in Azure AD B2C:
- Register an application in company A's Entra ID tenant.
Record the Application (client) ID and create a client secret for the registered application.
In company B's Azure AD B2C tenant, create a policy key to store the client secret.
- Configure Azure AD B2C to use company A's Entra ID as an identity provider by adding it to the ClaimsProvider element in the extension file of your policy. After configuring Azure AD as an identity provider, you should be able to authenticate users from company A in the Web App deployed in Azure from company B using Azure AD B2C.
If the issue persisted pleas do refer the below threads which is similar to your issue.
https://video2.skills-academy.com/en-us/answers/questions/891744/azure-ad-b2c-sign-in-workflow-with-google-as-an-id
https://video2.skills-academy.com/en-us/answers/questions/255659/how-can-i-invite-guest-users-to-azure-b2c-platform
https://video2.skills-academy.com/en-us/answers/questions/1339286/how-to-add-a-federated-user-that-can-be-authentica
Hope this helps. Do let us know if you any further queries by responding in the comments section.
Thanks,
Akhilesh.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.