Getting Error "The phone number you provided is unreachable." in Azure AD B2C custom policy.

Ankit Neema 0 Reputation points
2025-01-28T04:12:52.1833333+00:00

I am getting error during the phone number verification process, after clicking "Send Code" I received the error message "The phone number you provided is unreachable".

Thanks,

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,862 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sumit 751 Reputation points
    2025-02-04T13:01:15.08+00:00

    Hi,

    via

    https://learn.microsoft.com/en-us/answers/questions/2105241/the-error-the-phone-number-you-provided-is-unreach

    The behavior you're encountering where the phone number verification process results in an error after repeatedly clicking "Send a New Code" is generally a safeguard to prevent abuse or excessive requests, which can be seen as a form of rate limiting.

    In Azure AD B2C, there are built-in mechanisms to prevent abuse of the phone verification process, such as limiting the number of verification codes that can be sent in a short period. This helps to prevent potential denial-of-service attacks or abuse of the phone verification service.

    You could implement a countdown timer that disables the "Send a New Code" button for a certain duration after each request. For example:

    JavaScriptCopy

    document
    

    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

    0 comments No comments

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.