When using users.create with password undefined it creates an anonymous user even through email and phone number and name are added. If I do a blank space for password it gives an error that the password length must be at least 8. Is there a way to create a user so that the email address phone number and name are populated?
What version of the SDK are you using?
Can't reproduce
node-appwrite@18.0.0:
const user = await users.create({
userId: "unique()",
name: "Demo user",
email: "demo@example.org"
});
node-appwrite@17.2.0:
const user = await users.create(
"unique()",
"demo@example.com",
undefined,
undefined,
"Demo User"
);
Tested against Appwrite v1.8.0
I see the issue for some reason it is running version 9.0.0 i will update it and see what happens
I just tried with node-appwrite@9.0.0 (using the same code as for node-appwrite@17.2.0 above) and it worked
This is what I was trying await users.create(ID.unique(), data.email, data.number, undefined, data.name);
And what do you get? Have you checked that the email address, phone number and name in those variables is actually what you're expecting?
Yes they were all there doing a log but it would just make an anonymous user but trying with the update now
What's the response on users.create()?
{"$id":"68af19c70017708ed8de","$createdAt":"2025-08-27T14:44:23.470+00:00","$updatedAt":"2025-08-27T14:44:23.470+00:00","name":"","password":null,"hash":"argon2","hashOptions":{"type":"argon2","memoryCost":2048,"timeCost":4,"threads":3},"registration":"2025-08-27T14:44:23.469+00:00","status":true,"labels":[],"passwordUpdate":"","email":"","phone":"","emailVerification":false,"phoneVerification":false,"mfa":false,"prefs":{},"targets":[],"accessedAt":""}
Thats what I get still with await users.create({
userId: ID.unique(),
email: data.email,
phone: data.number,
name: data.name
});
Confirmed its the 18.0.0 version
Huh. And data.email, etc, definitely contains an email address?
Here is the whole log:
{"email":"king33722000@gmail.com","name":"Rickey Lee","number":"+12205559092"}
{"$id":"68af19c70017708ed8de","$createdAt":"2025-08-27T14:44:23.470+00:00","$updatedAt":"2025-08-27T14:44:23.470+00:00","name":"","password":null,"hash":"argon2","hashOptions":{"type":"argon2","memoryCost":2048,"timeCost":4,"threads":3},"registration":"2025-08-27T14:44:23.469+00:00","status":true,"labels":[],"passwordUpdate":"","email":"","phone":"","emailVerification":false,"phoneVerification":false,"mfa":false,"prefs":{},"targets":[],"accessedAt":""}```
Recommended threads
- Not able to upgrade to Appwrite Pro
This is my project ID - 69f5bee60036512d2d52 I've tried multiple credit cards now and I still face the same error "Your card was declined". But I've used the s...
- Running into a server error on my self-h...
Hey everyone, I'm running into a server error on my self-hosted setup after updating to v1.19.0. The issue only happens during user creation and deletion. Ever...
- Storage System
Hey guys, quick question regarding massive storage scaling. I’m working in digital forensics and I’m constantly dealing with huge binary disk images, usually be...