
yc954 (yc954) asked a question.
I’m working on a project where we want users to log in using their mobile numbers instead of email addresses.
If I pass mobile number as user when creation a user, I am getting 400 error. Is there any way to change user name format at okta side for my project.
{
"errorCode": "E0000001",
"errorSummary": "Api validation failed: login",
"errorLink": "E0000001",
"errorId": "oaetA3UbJQhQLmu2MyOxi_SjQ",
"errorCauses": [
{
"errorSummary": "login: Username must be in the form of an email address"
}
]
}
Appreciate any guidance or references to documentation on this
Thanks in advance.

Hello @yc954 (yc954) , thank you for contacting Okta Community.
This change has been documented in an article and a YouTube tutorial:
How to Remove the Format Restriction for Okta Username from Using an Email Address Format
Removing Format Restriction for Okta Username | Okta Support on YouTube
Did you know? We have a library of tutorials on the Okta Help Center channel on YouTube - subscribe today!
Regards.
--
Help others in the community by liking or hitting Select as Best if this response helped you.