Back

Error on createVerification()

  • 0
  • Self Hosted
  • Accounts
  • Web
  • Users
rovolt.
25 Feb, 2024, 12:28

Hi, I have a web app using Appwrite. I implemented the basic registration some time ago and it worked. User fills in email and password, sdk creates user with account.create(). Then sends the verification mail via account.createVerification(). I'm sure I didn't changed anything regarding that and already looked through and tried stuff for hours but I can't get rid a an exception thrown by createVerification: AppwriteException: User (role: guests) missing scope (account) The user creation works, but the verification not and therefor no email is being send. I hope someone can help.

TL;DR
Issue: Error thrown by createVerification() method in Appwrite SDK despite successful user creation. Solution: The error "User (role: guests) missing scope (account)" indicates a missing 'account' scope for users with the 'guests' role. To resolve this issue, ensure that the role assigned to users during creation has the necessary 'account' scope. This will allow the verification email to be sent successfully.
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