#[SOLVED] How to invite user to team via Server SDK?

17 messages · Page 1 of 1 (latest)

sick topaz
#

I'm calling server sdk in my appwrite function, I want to add 100+ members to a team from server sdk and then also send them emails for invite. My question being is this possible with server sdk? This would be 1 time process.

#

Currenly, I'm able to add the users but now able to send email

sick topaz
sick topaz
#

because invitation can only be send from client sdk thats what in the docs. But if I use client side, I'd be rate limited

sick topaz
#

Hello Steven any suggestions?

copper grove
sick topaz
sick topaz
short solar
#

With the served SDK, you can directly add the user to the team. You can't send them an invitation. It's just how Appwrite works currently.

#

That being said, if you absolutely have to use the server SDK, you can deploy a cloud function that does the following:

  1. Get the user's email.
  2. Send an email to the user stating that they're invited to team 'ABC'.
  3. Once the user clicks the accept invite button, call another function that registers the user, and adds them to the team.
copper grove
sick topaz
sick topaz
#

Someone can close this issue thank you :)

short solar
#

[SOLVED] A way to invite members from server sdk?

#

[SOLVED] How to invite user to team via Server SDK?

copper grove