I have a specific condition where I need to verify the user for the registration. The user enters the city and this must match with one of the allowed city name from my back-end. The user should only be able to register only if the city name matches and exist in the back-end. So, the condition is, how can I approach this flow using the Azure AD B2C user registration using custom policies. Is there any better approach to do this?
The user should only be able to register in the Azure AD B2C only if the city name matches with the one being contained back-end. If the name doesn't matches, they should be shown error and registration process must be halted.