Hi @Darsana Krishna , you can achieve this by creating a custom policy that overrides the default sign-up or sign-in policy.
Here are the high-level steps to achieve this:
- Create a custom policy that overrides the default sign-up or sign-in policy.
- Modify the custom policy to include a validation technical profile that bypasses email validation for specific users.
- Assign the custom policy to your application.
Here are the detailed steps:
- Create a custom policy that overrides the default sign-up or sign-in policy:
- In the Azure portal, go to your Azure AD B2C tenant.
- Go to "User flows" and click "New user flow".
- Select "Custom policy" and click "Create".
- Give your custom policy a name and click "Create".
- Download the starter pack for your custom policy and extract it to your local machine.
- Give your custom policy a name and click "Create".
- Select "Custom policy" and click "Create".
- Go to "User flows" and click "New user flow".
- In the Azure portal, go to your Azure AD B2C tenant.
- Modify the custom policy to include a validation technical profile that bypasses email validation for specific users:
- Open the
TrustFrameworkExtensions.xml
file in a text editor.- Add a validation technical profile that bypasses email validation for specific users. Here is an example:
- Open the
<TechnicalProfile Id="BypassEmailVerification">
<DisplayName>Bypass email verification</DisplayName>
<Protocol Name="None" />
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="objectId" Required="true" />
</OutputClaims>
<ValidationTechnicalProfiles>
<ValidationTechnicalProfile ReferenceId="AAD-UserReadUsingObjectId" />
</ValidationTechnicalProfiles>
</TechnicalProfile>
This technical profile reads the user's object ID and validates it against Azure AD. If the validation succeeds, the user is allowed to bypass email verification.
Add a validation step to your sign-up or sign-in technical profile that calls the validation technical profile you just created. Here is an example:
<ValidationTechnicalProfiles>
<ValidationTechnicalProfile ReferenceId="BypassEmailVerification" />
</ValidationTechnicalProfiles>
This step calls the validation technical profile you just created and allows the user to bypass email verification if the validation succeeds.
- Assign the custom policy to your application:
- Go to your application's registration in the Azure portal.
- Go to "Authentication" and select your custom policy as the sign-up or sign-in policy.
- Save the changes.
- Go to "Authentication" and select your custom policy as the sign-up or sign-in policy.
- Go to your application's registration in the Azure portal.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James