:ring_buoy: Help request — Json sample for importi...
# ask-a-descoper
t
🛟 Help request — Json sample for importing users I don’t seem to be able to import a user successfully from my json
Copy code
[
	{
		"identifier": "+13054986863",
		"displayName": "Amy Reginer",
		"phonenumber": "+15622121908",
		"verifiedPhone": true,
		"status": "enabled"
	  }
  ]
b
Laura, seems you are having the right structure. I was able to import this JSON you sent.
t
Odd.
b
what is the project ID you are trying to upload? will look at logs
t
P2Of3chsSCHf3C99DkiigKE19flu
b
looking
t
It says it was successful but doesn’t display the user
b
i see couple of decoding errors. can you please DM me the exact JSON you are trying?
t
Amyload.json
b
Also see couple of "already exists" errors.
are you sure no user with such identifier exists?
t
message has been deleted
b
what you sent - not an array.
t
This is all the users we’ve created so far short of the missing amy
b
pls wrap it with
[
]
t
The first attempt was it wrapped with an array
b
oh wait
the test user has same identified
delete it and retry
t
There it goes
b
🙂
t
So there was an error in that the uploaded user had a matching phone attribute to a test user
b
yes. we'll see how to better represent this error to descopers
t
This is interesting
message has been deleted
Would we expect that the log in id would differ from the phone?
The error seems to be that my json has a mismatch between the login id and the the phone number
b
you can create such scenario, but it's highly unlikely and not recommended
this means that the user will have to type the login ID number, but OTP will be sent to the phone number
t
Thats an error on my part
b
👍
t
Thanks!
So the specific issue we saw here was an attempt to create a user with the same login id used by another user and the ui saying the user creation was successful when it was not and the user not being displayed
b
right
t
I would expect a warning or a failure with ability to review the issue
😄
b
yes. agreed!
t
Thanks for the help
b
sure thing!