[BUG] Azure B2C calls a RestAPI endpoint defined in custom policy multiple times.

WJ Yoo 1 Reputation point
2021-02-09T17:33:11.9+00:00

We have a OrchestrationStep at the end of signup UserJorney in custom policy that calls a Rest Endpoint to send out a signup email.
Azure calls our Rest endpoint multiple times causing it to send out more than one signup email.
This does not always happen, but happens most of times. Sometimes, it calls 2~4 times, but sometimes it calls hundred times.
One of our customer reported that he/she received 600 signup emails!
We have a logging infra that monitors http requests/responses, and we confirm that Azure is actually calling our endpoint multiple times for an email address at the end of signup.

This is serious since our new customers basically receives massive number of emails when they sign up our service.

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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.