Back

Can we restrict users from modifying teams via client SDK?

  • 0
  • Flutter
  • Cloud
anmot.
22 Feb, 2024, 06:20

I believe teams can be created / updated both from client and server SDK. If yes, how do we prevent client modifying teams?

TL;DR
Developers are looking to restrict users from modifying teams using the client SDK. They are seeking clarification on how to invite new members via the server SDK instead of adding them directly to the team. The solution involves adjusting settings to restrict clients from creating, updating, or deleting teams.
anmot.
22 Feb, 2024, 06:27

Found this in settings. Please confirm if this is the right way to restrict client alone from creating / updating / deleting teams.

anmot.
22 Feb, 2024, 06:52
  1. Based on the create membership docs - If initiated from a Client SDK, Appwrite will send an email or sms with a link to join the team to the invited user, and an account will be created for them if one doesn't exist. If initiated from a Server SDK, the new member will be added automatically to the team.

How do we invite new member (send email / sms link to join) from server sdk instead of adding them directly to the team?

https://appwrite.io/docs/references/cloud/client-web/teams#createMembership

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