Name not set when create sms passwordless users via API

Hi!
I’m pushing own member-data to auth0, but I can’t get det name set on the sms-connection.

The response I get from the api-call shows that the name is ignored:

{
.....
"name": "+45xxxxxxxx",
"nickname": "+45xxxxxxxx",
"phone_number": "+45xxxxxxxx",
.....
}

Does that mean it’s not possible to set a name on the sms-connection?

If so, why doesn’t the API complain about incompatible params (like when providing an email on creation )

Hi @AlsLUG

Thanks for getting in touch with Auth0 Community.

The phone number used for login on an sms connection being set in the name property is by design at present. What this also means is if you update the name property via the management api to something else, on next login it’s likely to be overwritten by the phone number again.

If you’re going to set the name for a user I would put the user’s name within the user_metadata as per this community post https://community.auth0.com/t/logging-in-with-passwordless-sms-resets-the-users-assigned-name/119479

Warm regards

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.