Cannot update user's phone number if that number is already assigned to another user

Hello!

We are currently trying to update a new users phone number to one that is already assigned to an existing user and we get the following error. We have not been able to find a setting/config that specifies phone number should be unique between user profiles.

Any help would be greatly appreiated!

Hi @rowen,

Welcome back to the Auth0 Community!

The error that you have encountered - “Error! The specified new phone_number already exists” is expected in this scenario, where the phone number is already assigned to a current user of your database.

A phone number can be considered an Identifier, which help for uniquely identifying users, therefore they must be unique. This is also mentioned in our Flexible Identifiers and Attributes documentation, which also points that:

  • Each user must be assigned a unique username, email address, and phone number regardless of connection type. The phone number is unique even if not added as an attribute.

I hope this helps, so if you have further questions please let me know!
Best regards,
Remus