Rank 3: Container
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.
Votes
1
Replies
17
Participants
Unknown
Messages
18
Rank 3: Container
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.
Rank 3: Container
Currenly, I'm able to add the users but now able to send email
Admin
Email invite for what?
Rank 3: Container
invite them to the organization team and then ask them to change password
Rank 3: Container
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
Rank 3: Container
Hello Steven any suggestions?
Admin
You're not really making use of Appwrite's team invitation feature so, if I were you, I'd create a function to send an email
Rank 3: Container
Yeah thought about this! And we could use our personal email to this. Why we're trying to use Appwrite teams here is because we want to a university to add their students and if we could directly create a membership for the team, the students would get an email and then they could change the password. Just how an lms functions.
Rank 3: Container
Can we not really send invitations from server sdk? I'm confused because, even in server sdk it was asking me for the URL to be sent to the users. So I was confused.
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:
Admin
via a client SDK, it sends them an invitation and they have to accept the invite in order to get added to the team. The server SDK allows you to force add the user into the team, without requiring them to accept it. That's why no email needs to be sent
Rank 3: Container
I think that clears my doubt thank you. I'll just use mailgun or something with functions to send email. Thanks Steven
Rank 3: Container
Someone can close this issue thank you :)
[SOLVED] A way to invite members from server sdk?
[SOLVED] How to invite user to team via Server SDK?
Admin
FYI, you should be able to update the title yourself too
Rank 3: Container
Ohh didn't knew that