* Import Users using JSON file * Hi all, I want t...
# ask-a-descoper
n
* Import Users using JSON file * Hi all, I want to add 100+ users on the Descope Console so I want to use the "Import Users " function in the top right. It allows imoirting only JSON files so I converted my CSV (first name, last name, emails) into JSON file. Format: [ {"First_Name": "Firstnam1", "Last_Name": "Lastname1", "Email": "jemail@email.com"}, {"First_Name": "Firstname2", "Last_Name": "Lastname2", "Email": "jemail@email.com"}, ] After I import to the console I get success message but no user is added. Any solutions?
s
@numerous-continent-44612 it's likely the format of the JSON file. Please take a look at this guide. The identifier should be given; otherwise, the user won't be created. With your dataset, I'd recommend using email as the identifier. Also, you can create custom attributes under the user's page for first_name and last_name, then import them as custom attributes, or you could concatenate them and store them within your JSON file as displayName. https://docs.descope.com/knowledgebase/general/importuserjson/
n
Thanks!! Now after they are all imported, I get a wanting sign next all of their email addresses, with the text: "email unverified" Should I do something or they all already authorized?
s
They should be able to login which will verify their email address. You could also use the api to manually verify them as well. Load the users https://docs.descope.com/api/openapi/usermanagement/operation/SearchUsers/ Update the email with the current email and verified: true. https://docs.descope.com/api/openapi/usermanagement/operation/UpdateUserEmail/
n
Thanks Chris! that worked very well!
👍 1