Hi @Jesus Orlando Aguilar Contreras , It seems like you have set up Azure AD B2C in company B's tenant to authenticate users from company A's Azure AD. 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 Azure AD as an identity provider. This way, users from company A can authenticate using their Azure AD credentials, and Azure AD B2C will not look for them in company B's directory. Here are the steps to configure Azure AD as an identity provider in Azure AD B2C:
- Register an application in company A's Azure AD 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 Azure AD 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.
Please let me know if this works or if you have any questions!
If this answer helps you please mark it as "Verified" so other users can reference it.
Thank you,
James