Back

[SOLVED] Server SDK: Adding User to Teams without e-mail address

  • 0
  • Teams
SimpleJack
6 Oct, 2023, 00:17

I am currently trying to develop an application in which it is possible to add users to joint project groups. For this I want to use the "Teams" functions to group the users. The users should only have to register via SMS. When I try to assign a new user to a team, Appwrite expects the user to provide an email address. Since the user does not need one, it does not exist.

Is there a way to add users to a team without an email address?

I've already tried adding the user to a team via the client and server sdk.

TL;DR
There was a problem with adding a user to a team without an email address. However, the issue was resolved by upgrading to a newer version of the Server SDK (from version 9.0.0 to 11.0.0). The feature to add a user without an email address was added in version 1.4 of the SDK. So, make sure you are on the latest version and refer to the documentation for the specific SDK you are using to properly implement this feature.
Drake
6 Oct, 2023, 01:31

This feature was added in 1.4: https://appwrite.io/docs/references/cloud/client-web/teams#createMembership.

What version of Appwrite are you on? What SDK are you using and what version of the SDK?

SimpleJack
6 Oct, 2023, 11:27

In fact, I was on an old version of the Server SDK. After upgrading from version 9.0.0 to 11.0.0, my server-side function now works without providing an e-mail address! Thanks

Drake
6 Oct, 2023, 14:08

[SOLVED] Server SDK: Adding User to Teams without e-mail address

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