Cannot set nickname with user import job

We have an admin dashboard at my work where we allow admins to upload a list of new users in a CSV file. The file is transformed into JSON, sent to our API, which then saves the JSON as a file and starts the Auth0 user import job. The structure we’re sending to Auth0 is as follows:

[{
  nickname: user.username,
  email: user.email,
  password: user.password,
  username: user.username,
  name: user.name,
  user_metadata: {
    ...
  }
}]

Everything is set correctly in Auth0 with the exception of the user’s nickname. The user’s nickname is set to the first part of the email (if the user’s email is support@email.com, the nickname is set to support). Is there a way to set the nickname using this endpoint?

Since the nickname on a user is not patch-able, the only workaround I can think of is to create the user with an incorrect email so that the nickname is correct, and then patch the user with the correct email. This is sub-optimal, and I would be glad to hear if there’s a solution that is built-in.

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?

I saw a bit ago that there was an update to the endpoint, but I hadn’t tested it out until now to respond to you. It seems to be working properly now!

1 Like

Perfect to hear that!