Back

Appwrite creates new user in Auth but doesnt create it in users database

  • 0
  • Web
  • Tools
  • Auth
  • Databases
  • Self Hosted
multipla5008
7 May, 2024, 11:39

This function creates a new user in Auth directory, but it fails to add a user to the database > users folder that i created. I double checked for any errors inside the appwrite folder config but i cant find any... All users are permitted to do anything with the database for now and it's still not working.

TL;DR
Appwrite creates new users in Auth but not in the database; it requires attribute-value pairs when creating a document. Double-check the appwrite folder config for errors.
Jamy
7 May, 2024, 11:58

Hello! I'm not familiar with JavaScript, but when you create the document, I think it should be a dictionary to provide. With the attribute alongside the value. Something like {userName: aaa, email: aaa@bbb.com}

multipla5008
7 May, 2024, 11:59

hi, you mean this?

Jamy
7 May, 2024, 11:59

Yes, in the data attribute

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more